aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2016-09-03 21:30:04 +0200
committerEugene Sandulenko2016-09-03 21:30:04 +0200
commitc2f5c48068b921690e7368b006ec4478b38bd448 (patch)
treedccc9fef4ba00c22308708cc66eb2e96e9913532 /backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp
parentb8ee5322f4e5c277fcf55852dade79c643cf8cc3 (diff)
downloadscummvm-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/dinguxsdl/dinguxsdl-graphics.cpp')
-rw-r--r--backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp3
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);