diff options
author | Matthew Hoops | 2010-11-17 19:58:19 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-11-17 19:58:19 +0000 |
commit | ecb42156ce6f4530f3e5fcaec68544d2ab552565 (patch) | |
tree | 5eebbac24f3db0380b033a638fac0aabe95277dd /engines/mohawk/graphics.h | |
parent | 84a753d8409ba0dc9323b135bf730bff5dd39aa3 (diff) | |
download | scummvm-rg350-ecb42156ce6f4530f3e5fcaec68544d2ab552565.tar.gz scummvm-rg350-ecb42156ce6f4530f3e5fcaec68544d2ab552565.tar.bz2 scummvm-rg350-ecb42156ce6f4530f3e5fcaec68544d2ab552565.zip |
MOHAWK: Cache the Myst screen buffer
This is needed for use with sliders. The screen is now updated fewer times as well.
svn-id: r54300
Diffstat (limited to 'engines/mohawk/graphics.h')
-rw-r--r-- | engines/mohawk/graphics.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/mohawk/graphics.h b/engines/mohawk/graphics.h index 9419aad277..e44bba213b 100644 --- a/engines/mohawk/graphics.h +++ b/engines/mohawk/graphics.h @@ -101,6 +101,7 @@ public: void showCursor(); void hideCursor(); void changeCursor(uint16); + void updateScreen(); void drawRect(Common::Rect rect, bool active); private: @@ -108,7 +109,6 @@ private: MystBitmap *_bmpDecoder; Graphics::PictDecoder *_pictDecoder; Graphics::JPEGDecoder *_jpegDecoder; - Graphics::PixelFormat _pixelFormat; struct PictureFile { uint32 pictureCount; @@ -123,6 +123,10 @@ private: Common::File picFile; } _pictureFile; + + Graphics::Surface *_mainScreen; + bool _dirtyScreen; + Graphics::PixelFormat _pixelFormat; }; struct SFXERecord { |