diff options
author | Gregory Montoir | 2004-01-11 14:08:07 +0000 |
---|---|---|
committer | Gregory Montoir | 2004-01-11 14:08:07 +0000 |
commit | f2874733b0cee77307ef7abd59af9b5c4ac43c9f (patch) | |
tree | 77e4bcb09278312af532e4cb79f25299be0f8e8a /queen/display.h | |
parent | a578817f98d6f26decee2cfd12fbbc535c12616e (diff) | |
download | scummvm-rg350-f2874733b0cee77307ef7abd59af9b5c4ac43c9f.tar.gz scummvm-rg350-f2874733b0cee77307ef7abd59af9b5c4ac43c9f.tar.bz2 scummvm-rg350-f2874733b0cee77307ef7abd59af9b5c4ac43c9f.zip |
tweaked a bit dirty blocks display code, this fixes the minor glitch in interview intro
svn-id: r12317
Diffstat (limited to 'queen/display.h')
-rw-r--r-- | queen/display.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/queen/display.h b/queen/display.h index 46df760791..3b42ef8554 100644 --- a/queen/display.h +++ b/queen/display.h @@ -73,14 +73,14 @@ public: void readPCX(uint8 *dst, uint16 dstPitch, const uint8 *src, uint16 w, uint16 h); void horizontalScrollUpdate(int16 xCamera); - void horizontalScroll(int16 scroll) { _fullRefresh = true; _horizontalScroll = scroll; } + void horizontalScroll(int16 scroll); int16 horizontalScroll() const { return _horizontalScroll; } - void fullscreen(bool fs) { debug(6, "Display::fullscreen(%d)", fs); _fullRefresh = true; _fullscreen = fs; } + void fullscreen(bool fs) { _fullRefresh = 2; _fullscreen = fs; } bool fullscreen() const { return _fullscreen; } void setDirtyBlock(uint16 x, uint16 y, uint16 w, uint16 h); - void forceFullRefresh() { _fullRefresh = true; memset(_dirtyBlocks, 0, _dirtyBlocksWidth * _dirtyBlocksHeight); } + void forceFullRefresh() { _fullRefresh = 2; } void handleTimer(); void waitForTimer(); @@ -108,7 +108,6 @@ public: void blankScreenEffect2(); void blankScreenEffect3(); - private: enum { @@ -154,7 +153,7 @@ private: uint8 _mousePtr[14 * 14]; - bool _fullRefresh; + uint8 _fullRefresh; uint8 *_dirtyBlocks; uint16 _dirtyBlocksWidth, _dirtyBlocksHeight; |