-rw-r--r-- | noncore/games/kbill/MCursor.cc | 12 | ||||
-rw-r--r-- | noncore/games/kbill/Picture.cc | 16 |
2 files changed, 11 insertions, 17 deletions
diff --git a/noncore/games/kbill/MCursor.cc b/noncore/games/kbill/MCursor.cc index 93dd559..ec22d41 100644 --- a/noncore/games/kbill/MCursor.cc +++ b/noncore/games/kbill/MCursor.cc | |||
@@ -23,4 +23,6 @@ | |||
23 | #include <opie2/odebug.h> | 23 | #include <opie2/odebug.h> |
24 | using namespace Opie::Core; | 24 | #include <opie2/oresource.h> |
25 | #include <qpe/resource.h> | 25 | |
26 | #include <qbitmap.h> | ||
27 | |||
26 | MCursor::~MCursor() { | 28 | MCursor::~MCursor() { |
@@ -56,6 +58,6 @@ void MCursor::load(const char *name, int masked) { | |||
56 | QBitmap bitmap, mask; | 58 | QBitmap bitmap, mask; |
57 | bitmap = Resource::loadBitmap("kbill/bitmaps/" + QString::fromLocal8Bit(name)); | 59 | bitmap = Opie::Core::OResource::loadPixmap( "kbill/bitmaps/" + QString::fromLocal8Bit( name ) ); |
58 | 60 | ||
59 | if (masked == SEP_MASK) | 61 | if (masked == SEP_MASK) |
60 | mask = bitmap = Resource::loadBitmap("kbill/bitmaps/" + QString::fromLocal8Bit(name) + "_mask.xbm"); | 62 | mask = bitmap = Opie::Core::OResource::loadPixmap( "kbill/bitmaps/" + QString::fromLocal8Bit(name) + "_mask.xbm" ); |
61 | else | 63 | else |
diff --git a/noncore/games/kbill/Picture.cc b/noncore/games/kbill/Picture.cc index cf96ddf..9659667 100644 --- a/noncore/games/kbill/Picture.cc +++ b/noncore/games/kbill/Picture.cc | |||
@@ -19,4 +19,3 @@ | |||
19 | #include <opie2/odebug.h> | 19 | #include <opie2/odebug.h> |
20 | using namespace Opie::Core; | 20 | #include <opie2/oresource.h> |
21 | #include <qpe/resource.h> | ||
22 | #ifdef KDEVER | 21 | #ifdef KDEVER |
@@ -27,9 +26,2 @@ using namespace Opie::Core; | |||
27 | void Picture::load(const char *name, int index) { | 26 | void Picture::load(const char *name, int index) { |
28 | //QString dir = KApplication::kde_datadir(), file; | ||
29 | // QString dir = locate("data",""),file; | ||
30 | // dir += "/kbill/"; | ||
31 | // if (index>=0) | ||
32 | // file.sprintf ("%spixmaps/%s_%d.xpm", (const char *)dir, name, index); | ||
33 | // else | ||
34 | // file.sprintf("%spixmaps/%s.xpm", (const char *)dir, name); | ||
35 | #ifdef KDEVER | 27 | #ifdef KDEVER |
@@ -55,8 +47,8 @@ void Picture::load(const char *name, int index) { | |||
55 | QString sindex; | 47 | QString sindex; |
56 | pix = new QPixmap(); | 48 | //pix = new QPixmap(); |
57 | sindex.setNum(index); | 49 | sindex.setNum(index); |
58 | if (index>=0) | 50 | if (index>=0) |
59 | pix->load(Resource::findPixmap("kbill/pixmaps/" + QString::fromLocal8Bit(name) +"_"+ sindex)); | 51 | pix = new QPixmap( Opie::Core::OResource::loadPixmap( "kbill/pixmaps/" + QString::fromLocal8Bit(name) +"_"+ sindex ) ); |
60 | else | 52 | else |
61 | pix->load(Resource::findPixmap("kbill/pixmaps/" + QString::fromLocal8Bit(name))); | 53 | pix = new QPixmap( Opie::Core::OResource::loadPixmap( "kbill/pixmaps/" + QString::fromLocal8Bit(name) ) ); |
62 | 54 | ||