[Scummvm-cvs-logs] SF.net SVN: scummvm:[39933] scummvm/trunk/engines/kyra

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sat Apr 11 14:44:27 CEST 2009


Revision: 39933
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39933&view=rev
Author:   lordhoto
Date:     2009-04-11 12:44:27 +0000 (Sat, 11 Apr 2009)

Log Message:
-----------
Cleanup.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/screen_lok.cpp
    scummvm/trunk/engines/kyra/screen_lok.h

Modified: scummvm/trunk/engines/kyra/screen_lok.cpp
===================================================================
--- scummvm/trunk/engines/kyra/screen_lok.cpp	2009-04-11 12:34:16 UTC (rev 39932)
+++ scummvm/trunk/engines/kyra/screen_lok.cpp	2009-04-11 12:44:27 UTC (rev 39933)
@@ -96,7 +96,7 @@
 
 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;

Modified: scummvm/trunk/engines/kyra/screen_lok.h
===================================================================
--- scummvm/trunk/engines/kyra/screen_lok.h	2009-04-11 12:34:16 UTC (rev 39932)
+++ scummvm/trunk/engines/kyra/screen_lok.h	2009-04-11 12:44:27 UTC (rev 39933)
@@ -32,10 +32,6 @@
 
 class KyraEngine_LoK;
 
-enum {
-	BITBLIT_RECTS = 10
-};
-
 class Screen_LoK : public Screen {
 public:
 	Screen_LoK(KyraEngine_LoK *vm, OSystem *system);
@@ -64,12 +60,16 @@
 	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;
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list