summaryrefslogtreecommitdiff
path: root/noncore/games/snake/snake.cpp
Unidiff
Diffstat (limited to 'noncore/games/snake/snake.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/snake/snake.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/noncore/games/snake/snake.cpp b/noncore/games/snake/snake.cpp
index 8a683ab..802951c 100644
--- a/noncore/games/snake/snake.cpp
+++ b/noncore/games/snake/snake.cpp
@@ -21,8 +21,7 @@
21#include "snake.h" 21#include "snake.h"
22#include "target.h" 22#include "target.h"
23 23
24#include <qpe/resource.h> 24#include <opie2/oresource.h>
25
26 25
27static int Piecekey[4][4] = { {6, 0, 4, 3 }, {0, 6, 2, 1 }, { 1, 3, 5, 0 }, {2, 4, 0, 5 } }; 26static int Piecekey[4][4] = { {6, 0, 4, 3 }, {0, 6, 2, 1 }, { 1, 3, 5, 0 }, {2, 4, 0, 5 } };
28 27
@@ -39,7 +38,7 @@ Snake::Snake(QCanvas* c)
39void Snake::createSnake() 38void Snake::createSnake()
40{ 39{
41 snakeparts = new QCanvasPixmapArray(); 40 snakeparts = new QCanvasPixmapArray();
42 QString s0 = Resource::findPixmap("snake/s0001"); 41 QString s0 = Opie::Core::OResource::findPixmap("snake/s0001");
43 s0.replace(QRegExp("0001"),"%1"); 42 s0.replace(QRegExp("0001"),"%1");
44 snakeparts->readPixmaps(s0, 15); 43 snakeparts->readPixmaps(s0, 15);
45 44