summaryrefslogtreecommitdiff
path: root/noncore/games/snake/obstacle.cpp
Side-by-side diff
Diffstat (limited to 'noncore/games/snake/obstacle.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/snake/obstacle.cpp6
1 files changed, 2 insertions, 4 deletions
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
@@ -21,9 +21,7 @@
#include "obstacle.h"
#include "codes.h"
-#include <qpe/resource.h>
-
-
+#include <opie2/oresource.h>
Obstacle::Obstacle(QCanvas* canvas, int y)
: QCanvasSprite(0,canvas)
@@ -33,7 +31,7 @@ Obstacle::Obstacle(QCanvas* canvas, int y)
void Obstacle::newObstacle(int y)
{
- QPixmap obstaclePix( Resource::findPixmap("snake/wall.png") );
+ QPixmap obstaclePix( Opie::Core::OResource::findPixmap("snake/wall") );
if ( obstaclePix.width() > canvas()->width()*3/5 ) {
int w = canvas()->width()*3/5;