[Scummvm-cvs-logs] SF.net SVN: scummvm:[54945] scummvm/trunk/engines/mohawk

mthreepwood at users.sourceforge.net mthreepwood at users.sourceforge.net
Fri Dec 17 15:36:32 CET 2010


Revision: 54945
          http://scummvm.svn.sourceforge.net/scummvm/?rev=54945&view=rev
Author:   mthreepwood
Date:     2010-12-17 14:36:32 +0000 (Fri, 17 Dec 2010)

Log Message:
-----------
MOHAWK: Remove global construction of _viewport

Modified Paths:
--------------
    scummvm/trunk/engines/mohawk/graphics.cpp
    scummvm/trunk/engines/mohawk/graphics.h

Modified: scummvm/trunk/engines/mohawk/graphics.cpp
===================================================================
--- scummvm/trunk/engines/mohawk/graphics.cpp	2010-12-17 12:23:59 UTC (rev 54944)
+++ scummvm/trunk/engines/mohawk/graphics.cpp	2010-12-17 14:36:32 UTC (rev 54945)
@@ -210,11 +210,11 @@
 	getVM()->_system->unlockScreen();
 }
 
-const Common::Rect MystGraphics::_viewport = Common::Rect(544, 332);
-
 MystGraphics::MystGraphics(MohawkEngine_Myst* vm) : GraphicsManager(), _vm(vm) {
 	_bmpDecoder = new MystBitmap();
 
+	_viewport = Common::Rect(544, 332);
+
 	// The original version of Myst could run in 8bpp color too.
 	// However, it dithered videos to 8bpp and they looked considerably
 	// worse (than they already did :P). So we're not even going to

Modified: scummvm/trunk/engines/mohawk/graphics.h
===================================================================
--- scummvm/trunk/engines/mohawk/graphics.h	2010-12-17 12:23:59 UTC (rev 54944)
+++ scummvm/trunk/engines/mohawk/graphics.h	2010-12-17 14:36:32 UTC (rev 54945)
@@ -145,7 +145,7 @@
 
 	Graphics::Surface *_backBuffer;
 	Graphics::PixelFormat _pixelFormat;
-	static const Common::Rect _viewport;
+	Common::Rect _viewport;
 };
 
 struct SFXERecord {


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