Diffstat (limited to 'noncore/games/snake/interface.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/games/snake/interface.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/games/snake/interface.cpp b/noncore/games/snake/interface.cpp index 9d9550a..1eeb337 100644 --- a/noncore/games/snake/interface.cpp +++ b/noncore/games/snake/interface.cpp | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | #include "interface.h" | 21 | #include "interface.h" |
22 | 22 | ||
23 | #include <qpe/resource.h> | 23 | #include <opie2/oresource.h> |
24 | 24 | ||
25 | #include <qtoolbar.h> | 25 | #include <qtoolbar.h> |
26 | #include <qtoolbutton.h> | 26 | #include <qtoolbutton.h> |
@@ -31,7 +31,7 @@ SnakeGame::SnakeGame(QWidget* parent, const char* name, WFlags f) : | |||
31 | { | 31 | { |
32 | setCaption( tr("Snake") ); | 32 | setCaption( tr("Snake") ); |
33 | QPEApplication::setInputMethodHint(this, QPEApplication::AlwaysOff ); | 33 | QPEApplication::setInputMethodHint(this, QPEApplication::AlwaysOff ); |
34 | QPixmap bg = Resource::loadPixmap("snake/grass"); | 34 | QPixmap bg = Opie::Core::OResource::loadPixmap("snake/grass"); |
35 | canvas.setBackgroundPixmap(bg); | 35 | canvas.setBackgroundPixmap(bg); |
36 | canvas.setUpdatePeriod(100); | 36 | canvas.setUpdatePeriod(100); |
37 | snake = 0; | 37 | snake = 0; |
@@ -46,7 +46,7 @@ SnakeGame::SnakeGame(QWidget* parent, const char* name, WFlags f) : | |||
46 | QToolBar* toolbar = new QToolBar( this); | 46 | QToolBar* toolbar = new QToolBar( this); |
47 | toolbar->setHorizontalStretchable( TRUE ); | 47 | toolbar->setHorizontalStretchable( TRUE ); |
48 | 48 | ||
49 | QPixmap newicon = Resource::loadPixmap("ksnake"); | 49 | QPixmap newicon = Opie::Core::OResource::loadPixmap("ksnake"); |
50 | setIcon(newicon); | 50 | setIcon(newicon); |
51 | (void)new QToolButton(newicon, tr("New Game"), 0, | 51 | (void)new QToolButton(newicon, tr("New Game"), 0, |
52 | this, SLOT(newGame()), toolbar, "New Game"); | 52 | this, SLOT(newGame()), toolbar, "New Game"); |
@@ -86,7 +86,7 @@ void SnakeGame::welcomescreen() | |||
86 | int w = title->boundingRect().width(); | 86 | int w = title->boundingRect().width(); |
87 | title->move(canvas.width()/2 -w/2, canvas.height()/2-110); | 87 | title->move(canvas.width()/2 -w/2, canvas.height()/2-110); |
88 | title->show(); | 88 | title->show(); |
89 | QCanvasPixmapArray* titlearray = new QCanvasPixmapArray(Resource::findPixmap("snake/title")); | 89 | QCanvasPixmapArray* titlearray = new QCanvasPixmapArray(Opie::Core::OResource::findPixmap("snake/title")); |
90 | QCanvasSprite* titlepic = new QCanvasSprite(titlearray, &canvas); | 90 | QCanvasSprite* titlepic = new QCanvasSprite(titlearray, &canvas); |
91 | titlepic->move(canvas.width()/2 - 33, canvas.height()/2-85); | 91 | titlepic->move(canvas.width()/2 - 33, canvas.height()/2-85); |
92 | titlepic->show(); | 92 | titlepic->show(); |