diff options
author | Eugene Sandulenko | 2016-09-03 21:20:02 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-03 21:20:02 +0200 |
commit | 791012344607df1bd364da3e751dc9ad86445c62 (patch) | |
tree | 2d9f7cb9d5e92e0394c8a7ef2c05eacacc0cc567 /backends/graphics | |
parent | c4237a9303d745a57b8d58e1d39f3bb9e9aee7a4 (diff) | |
download | scummvm-rg350-791012344607df1bd364da3e751dc9ad86445c62.tar.gz scummvm-rg350-791012344607df1bd364da3e751dc9ad86445c62.tar.bz2 scummvm-rg350-791012344607df1bd364da3e751dc9ad86445c62.zip |
SDL: Optimize OSD drawing
Diffstat (limited to 'backends/graphics')
-rw-r--r-- | backends/graphics/surfacesdl/surfacesdl-graphics.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp index fdf21010e7..29f94c34d7 100644 --- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp +++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp @@ -1199,7 +1199,8 @@ void SurfaceSdlGraphicsManager::internUpdateScreen() { drawMouse(); #ifdef USE_OSD - SDL_BlitSurface(_osdSurface, 0, _hwscreen, 0); + if (_osdMessageAlpha != SDL_ALPHA_TRANSPARENT) + SDL_BlitSurface(_osdSurface, 0, _hwscreen, 0); #endif #ifdef USE_SDL_DEBUG_FOCUSRECT |