aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics
diff options
context:
space:
mode:
authorEugene Sandulenko2016-09-03 21:30:40 +0200
committerEugene Sandulenko2016-09-03 21:30:40 +0200
commit57ae1cb89d62de32320e77c3807c91c05d729b62 (patch)
tree07db60432c1e65637679df9243dd1ff53ca2ed5c /backends/graphics
parentc2f5c48068b921690e7368b006ec4478b38bd448 (diff)
downloadscummvm-rg350-57ae1cb89d62de32320e77c3807c91c05d729b62.tar.gz
scummvm-rg350-57ae1cb89d62de32320e77c3807c91c05d729b62.tar.bz2
scummvm-rg350-57ae1cb89d62de32320e77c3807c91c05d729b62.zip
GPH: Fix OSD performance when OSD is not drawn
Diffstat (limited to 'backends/graphics')
-rw-r--r--backends/graphics/gph/gph-graphics.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/graphics/gph/gph-graphics.cpp b/backends/graphics/gph/gph-graphics.cpp
index 4aae11d6e4..bd0f246286 100644
--- a/backends/graphics/gph/gph-graphics.cpp
+++ b/backends/graphics/gph/gph-graphics.cpp
@@ -440,7 +440,8 @@ void GPHGraphicsManager::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);