aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorJohannes Schickel2009-04-11 12:44:27 +0000
committerJohannes Schickel2009-04-11 12:44:27 +0000
commit3cc8059ce67851f90f47f7473f90649fe1ad80bf (patch)
tree4034208933247d1ac9eb1582ce277e599361d5e6 /engines/kyra
parent0dc02a2cbe0cb39d7780a8bc91f7cc7369ed03a5 (diff)
downloadscummvm-rg350-3cc8059ce67851f90f47f7473f90649fe1ad80bf.tar.gz
scummvm-rg350-3cc8059ce67851f90f47f7473f90649fe1ad80bf.tar.bz2
scummvm-rg350-3cc8059ce67851f90f47f7473f90649fe1ad80bf.zip
Cleanup.
svn-id: r39933
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/screen_lok.cpp2
-rw-r--r--engines/kyra/screen_lok.h10
2 files changed, 6 insertions, 6 deletions
diff --git a/engines/kyra/screen_lok.cpp b/engines/kyra/screen_lok.cpp
index 314e4c46ae..bd6d25c5e7 100644
--- a/engines/kyra/screen_lok.cpp
+++ b/engines/kyra/screen_lok.cpp
@@ -96,7 +96,7 @@ void Screen_LoK::fadeSpecialPalette(int palIndex, int startIndex, int size, int
void Screen_LoK::addBitBlitRect(int x, int y, int w, int h) {
debugC(9, kDebugLevelScreen, "Screen_LoK::addBitBlitRects(%d, %d, %d, %d)", x, y, w, h);
- if (_bitBlitNum >= BITBLIT_RECTS)
+ if (_bitBlitNum >= kNumBitBlitRects)
error("too many bit blit rects");
_bitBlitRects[_bitBlitNum].left = x;
diff --git a/engines/kyra/screen_lok.h b/engines/kyra/screen_lok.h
index 9250f1863c..d74da66df5 100644
--- a/engines/kyra/screen_lok.h
+++ b/engines/kyra/screen_lok.h
@@ -32,10 +32,6 @@ namespace Kyra {
class KyraEngine_LoK;
-enum {
- BITBLIT_RECTS = 10
-};
-
class Screen_LoK : public Screen {
public:
Screen_LoK(KyraEngine_LoK *vm, OSystem *system);
@@ -64,12 +60,16 @@ public:
void bitBlitRects();
protected:
+ enum {
+ kNumBitBlitRects = 10
+ };
+
KyraEngine_LoK *_vm;
static const ScreenDim _screenDimTable[];
static const int _screenDimTableCount;
- Common::Rect _bitBlitRects[BITBLIT_RECTS];
+ Common::Rect _bitBlitRects[kNumBitBlitRects];
int _bitBlitNum;
uint8 *_unkPtr1, *_unkPtr2;