summaryrefslogtreecommitdiff
path: root/noncore/games/snake/obstacle.cpp
Side-by-side diff
Diffstat (limited to 'noncore/games/snake/obstacle.cpp') (more/less context) (show 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
@@ -18,25 +18,23 @@
**
**********************************************************************/
#include "obstacle.h"
#include "codes.h"
-#include <qpe/resource.h>
-
-
+#include <opie2/oresource.h>
Obstacle::Obstacle(QCanvas* canvas, int y)
: QCanvasSprite(0,canvas)
{
newObstacle(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;
w = w - w % 16;
obstaclePix.resize( w, obstaclePix.height() );
}