summaryrefslogtreecommitdiff
path: root/noncore/games
authordrw <drw>2005-05-20 21:17:24 (UTC)
committer drw <drw>2005-05-20 21:17:24 (UTC)
commit5e7bbe42671f565bef961b44862ddbf68beed774 (patch) (side-by-side diff)
treeccf157157cec64314bae8cbdf846dd9ccefdd4a6 /noncore/games
parent3394f57eac978fa97ad60fb96bebc67b3783cfc6 (diff)
downloadopie-5e7bbe42671f565bef961b44862ddbf68beed774.zip
opie-5e7bbe42671f565bef961b44862ddbf68beed774.tar.gz
opie-5e7bbe42671f565bef961b44862ddbf68beed774.tar.bz2
Resource -> OResource
Diffstat (limited to 'noncore/games') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/snake/interface.cpp8
-rw-r--r--noncore/games/snake/obstacle.cpp6
-rw-r--r--noncore/games/snake/snake.cpp5
-rw-r--r--noncore/games/snake/target.cpp4
4 files changed, 10 insertions, 13 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
@@ -22,3 +22,3 @@
-#include <qpe/resource.h>
+#include <opie2/oresource.h>
@@ -33,3 +33,3 @@ SnakeGame::SnakeGame(QWidget* parent, const char* name, WFlags f) :
QPEApplication::setInputMethodHint(this, QPEApplication::AlwaysOff );
- QPixmap bg = Resource::loadPixmap("snake/grass");
+ QPixmap bg = Opie::Core::OResource::loadPixmap("snake/grass");
canvas.setBackgroundPixmap(bg);
@@ -48,3 +48,3 @@ SnakeGame::SnakeGame(QWidget* parent, const char* name, WFlags f) :
- QPixmap newicon = Resource::loadPixmap("ksnake");
+ QPixmap newicon = Opie::Core::OResource::loadPixmap("ksnake");
setIcon(newicon);
@@ -88,3 +88,3 @@ void SnakeGame::welcomescreen()
title->show();
- QCanvasPixmapArray* titlearray = new QCanvasPixmapArray(Resource::findPixmap("snake/title"));
+ QCanvasPixmapArray* titlearray = new QCanvasPixmapArray(Opie::Core::OResource::findPixmap("snake/title"));
QCanvasSprite* titlepic = new QCanvasSprite(titlearray, &canvas);
diff --git a/noncore/games/snake/obstacle.cpp b/noncore/games/snake/obstacle.cpp
index 4bdefa5..4639f5c 100644
--- a/noncore/games/snake/obstacle.cpp
+++ b/noncore/games/snake/obstacle.cpp
@@ -23,5 +23,3 @@
-#include <qpe/resource.h>
-
-
+#include <opie2/oresource.h>
@@ -35,3 +33,3 @@ void Obstacle::newObstacle(int y)
{
- QPixmap obstaclePix( Resource::findPixmap("snake/wall.png") );
+ QPixmap obstaclePix( Opie::Core::OResource::findPixmap("snake/wall") );
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
@@ -23,4 +23,3 @@
-#include <qpe/resource.h>
-
+#include <opie2/oresource.h>
@@ -41,3 +40,3 @@ void Snake::createSnake()
snakeparts = new QCanvasPixmapArray();
- QString s0 = Resource::findPixmap("snake/s0001");
+ QString s0 = Opie::Core::OResource::findPixmap("snake/s0001");
s0.replace(QRegExp("0001"),"%1");
diff --git a/noncore/games/snake/target.cpp b/noncore/games/snake/target.cpp
index a09af69..f20eb93 100644
--- a/noncore/games/snake/target.cpp
+++ b/noncore/games/snake/target.cpp
@@ -23,3 +23,3 @@
-#include <qpe/resource.h>
+#include <opie2/oresource.h>
@@ -30,3 +30,3 @@ Target::Target(QCanvas* canvas)
{
- mouse = new QCanvasPixmapArray(Resource::findPixmap("snake/mouse"));
+ mouse = new QCanvasPixmapArray(Opie::Core::OResource::findPixmap("snake/mouse"));
setSequence(mouse);