Diffstat (limited to 'noncore/games/qasteroids/view.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/games/qasteroids/view.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/noncore/games/qasteroids/view.cpp b/noncore/games/qasteroids/view.cpp index 3a4d410..6cab700 100644 --- a/noncore/games/qasteroids/view.cpp +++ b/noncore/games/qasteroids/view.cpp @@ -26,4 +26,4 @@ -#include <qpe/resource.h> - +#include <opie2/oresource.h> +#include <qpe/qpeapplication.h> @@ -32,3 +32,3 @@ -#define IMG_BACKGROUND "qasteroids/bg.png" +#define IMG_BACKGROUND "qasteroids/bg" @@ -97,4 +97,3 @@ KAsteroidsView::KAsteroidsView( QWidget *parent, const char *name ) - QPixmap pm( Resource::loadPixmap(IMG_BACKGROUND) ); - field.setBackgroundPixmap( pm ); + field.setBackgroundPixmap( Opie::Core::OResource::loadPixmap(IMG_BACKGROUND) ); @@ -250,6 +249,3 @@ void KAsteroidsView::readSprites() { - QString sprites_prefix = Resource::findPixmap( IMG_BACKGROUND ); - int sep = sprites_prefix.findRev( "/" ); - - sprites_prefix.truncate( sep ); + QString sprites_prefix = QPEApplication::qpeDir() + "pics/qasteroids"; |