From 8ec9f96d5478e3c06a7b240a86a537a391665b44 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Fri, 17 Dec 2010 14:36:32 +0000 Subject: MOHAWK: Remove global construction of _viewport svn-id: r54945 --- engines/mohawk/graphics.cpp | 4 ++-- engines/mohawk/graphics.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/mohawk') diff --git a/engines/mohawk/graphics.cpp b/engines/mohawk/graphics.cpp index 7906ae6182..ed30cc25cf 100644 --- a/engines/mohawk/graphics.cpp +++ b/engines/mohawk/graphics.cpp @@ -210,11 +210,11 @@ void GraphicsManager::copyAnimImageSectionToScreen(uint16 image, Common::Rect sr 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 diff --git a/engines/mohawk/graphics.h b/engines/mohawk/graphics.h index bf6f99af07..0dc281c391 100644 --- a/engines/mohawk/graphics.h +++ b/engines/mohawk/graphics.h @@ -145,7 +145,7 @@ private: Graphics::Surface *_backBuffer; Graphics::PixelFormat _pixelFormat; - static const Common::Rect _viewport; + Common::Rect _viewport; }; struct SFXERecord { -- cgit v1.2.3