diff options
author | Colin Snover | 2017-04-29 14:00:28 -0500 |
---|---|---|
committer | Colin Snover | 2017-04-29 14:31:01 -0500 |
commit | 5dd961884276cfb3f5d5ae95b3c2440582ced917 (patch) | |
tree | 59475619e88a1bb15d50c2cb8b26aa33d8f54b1f /engines/sci/graphics/frameout.h | |
parent | 75c6b1fd3bf34e37e5aa5b6b6bfce355091d2e4a (diff) | |
download | scummvm-rg350-5dd961884276cfb3f5d5ae95b3c2440582ced917.tar.gz scummvm-rg350-5dd961884276cfb3f5d5ae95b3c2440582ced917.tar.bz2 scummvm-rg350-5dd961884276cfb3f5d5ae95b3c2440582ced917.zip |
SCI32: Remove unnecessary GfxFrameout::_frameNowVisible
This flag was used in SSCI to read from VRAM instead of from the
back buffer when a mouse interrupt was received in the middle of
a back buffer update. Since ScummVM controls when mouse events
are received via polling, it is not possible to receive a mouse
event in the middle of back buffer updates, so this code is
unnecessary for the engine to work properly.
This also fixes Valgrind warnings about use of uninitialized
memory at the start of the game, caused by not filling the cursor
memory buffers because `_frameNowVisible` was false until the first
frame was rendered.
Diffstat (limited to 'engines/sci/graphics/frameout.h')
-rw-r--r-- | engines/sci/graphics/frameout.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/engines/sci/graphics/frameout.h b/engines/sci/graphics/frameout.h index 208c5b439c..146211544c 100644 --- a/engines/sci/graphics/frameout.h +++ b/engines/sci/graphics/frameout.h @@ -307,13 +307,6 @@ private: public: /** - * Whether or not the data in the current buffer is what - * is visible to the user. During rendering updates, - * this flag is set to false. - */ - bool _frameNowVisible; - - /** * Whether palMorphFrameOut should be used instead of * frameOut for rendering. Used by kMorphOn to * explicitly enable palMorphFrameOut for one frame. |