diff options
author | Colin Snover | 2016-07-12 14:14:01 -0500 |
---|---|---|
committer | Colin Snover | 2016-07-12 14:41:17 -0500 |
commit | efc12ffc5c905f38f1ea7889d4d9d6c14647441d (patch) | |
tree | b78bccee23c74e502c9c73535274cd7be7069762 /engines/sci/graphics/frameout.cpp | |
parent | 53ab0b28051eb346aa6a05c8c60e77d0f4cfa3cc (diff) | |
download | scummvm-rg350-efc12ffc5c905f38f1ea7889d4d9d6c14647441d.tar.gz scummvm-rg350-efc12ffc5c905f38f1ea7889d4d9d6c14647441d.tar.bz2 scummvm-rg350-efc12ffc5c905f38f1ea7889d4d9d6c14647441d.zip |
SCI32: Avoid flash of incorrect colour when palettes are changed
Avoid forcing the screen to refresh after a palette change if the
screen is also about to be drawn to, as the palette change + draw
is intended to be an atomic operation.
Diffstat (limited to 'engines/sci/graphics/frameout.cpp')
-rw-r--r-- | engines/sci/graphics/frameout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/graphics/frameout.cpp b/engines/sci/graphics/frameout.cpp index 44db9f870e..7bb9a4f5cf 100644 --- a/engines/sci/graphics/frameout.cpp +++ b/engines/sci/graphics/frameout.cpp @@ -573,7 +573,7 @@ void GfxFrameout::frameOut(const bool shouldShowBits, const Common::Rect &eraseR // _robot->frameAlmostVisible(); // } - _palette->updateHardware(); + _palette->updateHardware(!shouldShowBits); if (shouldShowBits) { showBits(); @@ -1144,7 +1144,7 @@ void GfxFrameout::palMorphFrameOut(const int8 *styleRanges, const ShowStyleEntry _palette->submit(nextPalette); _palette->updateFFrame(); - _palette->updateHardware(); + _palette->updateHardware(false); showBits(); _frameNowVisible = true; |