MOHAWK: Remove global construction of _viewport

svn-id: r54945
This commit is contained in:
Matthew Hoops 2010-12-17 14:36:32 +00:00
parent 44dfb67faa
commit 8ec9f96d54
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -145,7 +145,7 @@ private:
Graphics::Surface *_backBuffer;
Graphics::PixelFormat _pixelFormat;
static const Common::Rect _viewport;
Common::Rect _viewport;
};
struct SFXERecord {