diff options
| author | Colin Snover | 2016-08-26 19:50:13 -0500 | 
|---|---|---|
| committer | Colin Snover | 2016-09-29 19:39:16 -0500 | 
| commit | d0517f515eb7f36ec7222f3d50f4917fbd7df5e7 (patch) | |
| tree | c50c47dc923210b941e518aa3337986b446de395 /engines/sci/graphics | |
| parent | 63345b2b70e72330b4f2845bd45e13117be41dc4 (diff) | |
| download | scummvm-rg350-d0517f515eb7f36ec7222f3d50f4917fbd7df5e7.tar.gz scummvm-rg350-d0517f515eb7f36ec7222f3d50f4917fbd7df5e7.tar.bz2 scummvm-rg350-d0517f515eb7f36ec7222f3d50f4917fbd7df5e7.zip  | |
SCI32: Update screen on frameout, instead of in the event loop
Diffstat (limited to 'engines/sci/graphics')
| -rw-r--r-- | engines/sci/graphics/cursor32.cpp | 1 | ||||
| -rw-r--r-- | engines/sci/graphics/frameout.cpp | 2 | ||||
| -rw-r--r-- | engines/sci/graphics/palette32.cpp | 2 | 
3 files changed, 4 insertions, 1 deletions
diff --git a/engines/sci/graphics/cursor32.cpp b/engines/sci/graphics/cursor32.cpp index 88150db6e6..7889d61b09 100644 --- a/engines/sci/graphics/cursor32.cpp +++ b/engines/sci/graphics/cursor32.cpp @@ -122,6 +122,7 @@ void GfxCursor32::drawToHardware(const DrawRegion &source) {  	byte *sourcePixel = source.data + (sourceYOffset * source.rect.width()) + sourceXOffset;  	g_system->copyRectToScreen(sourcePixel, source.rect.width(), drawRect.left, drawRect.top, drawRect.width(), drawRect.height()); +	g_system->updateScreen();  }  void GfxCursor32::unhide() { diff --git a/engines/sci/graphics/frameout.cpp b/engines/sci/graphics/frameout.cpp index 4e0aa22669..e886193ccc 100644 --- a/engines/sci/graphics/frameout.cpp +++ b/engines/sci/graphics/frameout.cpp @@ -1108,6 +1108,7 @@ void GfxFrameout::mergeToShowList(const Common::Rect &drawRect, RectList &showLi  void GfxFrameout::showBits() {  	if (!_showList.size()) { +		g_system->updateScreen();  		return;  	} @@ -1146,6 +1147,7 @@ void GfxFrameout::showBits() {  	_cursor->donePainting();  	_showList.clear(); +	g_system->updateScreen();  }  void GfxFrameout::alterVmap(const Palette &palette1, const Palette &palette2, const int8 style, const int8 *const styleRanges) { diff --git a/engines/sci/graphics/palette32.cpp b/engines/sci/graphics/palette32.cpp index c7098bc3e4..db81669991 100644 --- a/engines/sci/graphics/palette32.cpp +++ b/engines/sci/graphics/palette32.cpp @@ -295,7 +295,7 @@ void GfxPalette32::updateHardware(const bool updateScreen) {  	g_system->getPaletteManager()->setPalette(bpal, 0, 256);  	if (updateScreen) { -		g_sci->getEventManager()->updateScreen(); +		g_system->updateScreen();  	}  }  | 
