summaryrefslogtreecommitdiff
path: root/noncore/games/zlines/ballpainter.cpp
Unidiff
Diffstat (limited to 'noncore/games/zlines/ballpainter.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/games/zlines/ballpainter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/games/zlines/ballpainter.cpp b/noncore/games/zlines/ballpainter.cpp
index 622ec29..e7596c4 100644
--- a/noncore/games/zlines/ballpainter.cpp
+++ b/noncore/games/zlines/ballpainter.cpp
@@ -8,25 +8,25 @@
8 email : Roman.Razilov@gmx.de 8 email : Roman.Razilov@gmx.de
9 ***************************************************************************/ 9 ***************************************************************************/
10 10
11/*************************************************************************** 11/***************************************************************************
12 * * 12 * *
13 * This program is free software; you can redistribute it and/or modify * 13 * This program is free software; you can redistribute it and/or modify *
14 * it under the terms of the GNU General Public License as published by * 14 * it under the terms of the GNU General Public License as published by *
15 * the Free Software Foundation; either version 2 of the License, or * 15 * the Free Software Foundation; either version 2 of the License, or *
16 * (at your option) any later version. * 16 * (at your option) any later version. *
17 * * 17 * *
18 ***************************************************************************/ 18 ***************************************************************************/
19 19
20#include <qpe/resource.h> 20#include <opie2/oresource.h>
21 21
22#include "ballpainter.h" 22#include "ballpainter.h"
23//#include "shotcounter.h" 23//#include "shotcounter.h"
24#include <qpainter.h> 24#include <qpainter.h>
25//#include <qcolor.h> 25//#include <qcolor.h>
26 26
27 27
28#define PIXSIZE 21 28#define PIXSIZE 21
29 29
30int colorLinesArr[NCOLORS] = 30int colorLinesArr[NCOLORS] =
31{0x0000ff, 0x00ff00, 0xff0000, 0x00ffff, 0xff00ff, 0xffff00, 0x005080}; 31{0x0000ff, 0x00ff00, 0xff0000, 0x00ffff, 0xff00ff, 0xffff00, 0x005080};
32// 0x00bbggrr 32// 0x00bbggrr
@@ -50,25 +50,25 @@ QPixmap* BallPainter::pixmap( enum Pixmaps pix )
50 switch(pix) { 50 switch(pix) {
51 case Field: 51 case Field:
52 name = QString::fromLatin1("zlines/field"); 52 name = QString::fromLatin1("zlines/field");
53 break; 53 break;
54 case Balls: 54 case Balls:
55 name = QString::fromLatin1("zlines/balls"); 55 name = QString::fromLatin1("zlines/balls");
56 break; 56 break;
57 case Fire: 57 case Fire:
58 name = QString::fromLatin1("zlines/fire"); 58 name = QString::fromLatin1("zlines/fire");
59 break; 59 break;
60 } 60 }
61 61
62 return new QPixmap(Resource::loadPixmap(name) ); 62 return new QPixmap(Opie::Core::OResource::loadPixmap(name) );
63} 63}
64 64
65void BallPainter::createPixmap() 65void BallPainter::createPixmap()
66{ 66{
67 // warning( kapp->kde_datadir() +"/klines/data/balls.bmp"); 67 // warning( kapp->kde_datadir() +"/klines/data/balls.bmp");
68 backgroundPix = pixmap(Field); 68 backgroundPix = pixmap(Field);
69 QPixmap *balls = pixmap(Balls); 69 QPixmap *balls = pixmap(Balls);
70 QPixmap *fire = pixmap(Fire); 70 QPixmap *fire = pixmap(Fire);
71 if (balls->isNull() ||backgroundPix->isNull() || fire->isNull() ) 71 if (balls->isNull() ||backgroundPix->isNull() || fire->isNull() )
72 fatal("Cannot open data files.\nHave you correctly installed klines?"); 72 fatal("Cannot open data files.\nHave you correctly installed klines?");
73 73
74 warning("Pixsize %i", PIXSIZE); 74 warning("Pixsize %i", PIXSIZE);