author | drw <drw> | 2005-05-20 21:17:24 (UTC) |
---|---|---|
committer | drw <drw> | 2005-05-20 21:17:24 (UTC) |
commit | 5e7bbe42671f565bef961b44862ddbf68beed774 (patch) (side-by-side diff) | |
tree | ccf157157cec64314bae8cbdf846dd9ccefdd4a6 /noncore/games/snake/obstacle.cpp | |
parent | 3394f57eac978fa97ad60fb96bebc67b3783cfc6 (diff) | |
download | opie-5e7bbe42671f565bef961b44862ddbf68beed774.zip opie-5e7bbe42671f565bef961b44862ddbf68beed774.tar.gz opie-5e7bbe42671f565bef961b44862ddbf68beed774.tar.bz2 |
Resource -> OResource
Diffstat (limited to 'noncore/games/snake/obstacle.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/games/snake/obstacle.cpp | 6 |
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() ); } |