Diffstat (limited to 'noncore/games/snake/obstacle.cpp') (more/less context) (ignore 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 @@ -12,37 +12,35 @@ ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** ** Contact info@trolltech.com if any conditions of this licensing are ** not clear to you. ** **********************************************************************/ #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() ); } QList<QPixmap> pixl; pixl.append( &obstaclePix ); QPoint nullp; QList<QPoint> pl; |