diff options
author | Eugene Sandulenko | 2016-09-03 21:30:04 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-03 21:30:04 +0200 |
commit | c2f5c48068b921690e7368b006ec4478b38bd448 (patch) | |
tree | dccc9fef4ba00c22308708cc66eb2e96e9913532 /backends/graphics | |
parent | b8ee5322f4e5c277fcf55852dade79c643cf8cc3 (diff) | |
download | scummvm-rg350-c2f5c48068b921690e7368b006ec4478b38bd448.tar.gz scummvm-rg350-c2f5c48068b921690e7368b006ec4478b38bd448.tar.bz2 scummvm-rg350-c2f5c48068b921690e7368b006ec4478b38bd448.zip |
DINGUX: Fix OSD performance when OSD is not drawn
Diffstat (limited to 'backends/graphics')
-rw-r--r-- | backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp b/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp index af44acd2c1..0938be2d4e 100644 --- a/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp +++ b/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp @@ -417,7 +417,8 @@ void DINGUXSdlGraphicsManager::internUpdateScreen() { drawMouse(); #ifdef USE_OSD - SDL_BlitSurface(_osdSurface, 0, _hwscreen, 0); + if (_osdMessageAlpha != SDL_ALPHA_TRANSPARENT) + SDL_BlitSurface(_osdSurface, 0, _hwscreen, 0); #endif // Finally, blit all our changes to the screen SDL_UpdateRects(_hwscreen, _numDirtyRects, _dirtyRectList); |