From 3cc8059ce67851f90f47f7473f90649fe1ad80bf Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 11 Apr 2009 12:44:27 +0000 Subject: Cleanup. svn-id: r39933 --- engines/kyra/screen_lok.cpp | 2 +- engines/kyra/screen_lok.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'engines/kyra') 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; -- cgit v1.2.3