aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk
diff options
context:
space:
mode:
authorMatthew Hoops2010-12-17 14:36:32 +0000
committerMatthew Hoops2010-12-17 14:36:32 +0000
commit8ec9f96d5478e3c06a7b240a86a537a391665b44 (patch)
tree817bd9c377e31865d301f318cb97f79597cdb7da /engines/mohawk
parent44dfb67faab9b20fc80ebb0e74c7690ce5f41ae4 (diff)
downloadscummvm-rg350-8ec9f96d5478e3c06a7b240a86a537a391665b44.tar.gz
scummvm-rg350-8ec9f96d5478e3c06a7b240a86a537a391665b44.tar.bz2
scummvm-rg350-8ec9f96d5478e3c06a7b240a86a537a391665b44.zip
MOHAWK: Remove global construction of _viewport
svn-id: r54945
Diffstat (limited to 'engines/mohawk')
-rw-r--r--engines/mohawk/graphics.cpp4
-rw-r--r--engines/mohawk/graphics.h2
2 files changed, 3 insertions, 3 deletions
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 {