diff options
author | Eugene Sandulenko | 2016-09-03 21:30:55 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-03 21:30:55 +0200 |
commit | 8e8199f6afd771749308aef40f307f000d7a54e7 (patch) | |
tree | 26214dcaa234c3743f7d0ab4abca6595b6118fc5 /backends/graphics | |
parent | 57ae1cb89d62de32320e77c3807c91c05d729b62 (diff) | |
download | scummvm-rg350-8e8199f6afd771749308aef40f307f000d7a54e7.tar.gz scummvm-rg350-8e8199f6afd771749308aef40f307f000d7a54e7.tar.bz2 scummvm-rg350-8e8199f6afd771749308aef40f307f000d7a54e7.zip |
LINUXMOTO: Fix OSD performance when OSD is not drawn
Diffstat (limited to 'backends/graphics')
-rw-r--r-- | backends/graphics/linuxmotosdl/linuxmotosdl-graphics.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/graphics/linuxmotosdl/linuxmotosdl-graphics.cpp b/backends/graphics/linuxmotosdl/linuxmotosdl-graphics.cpp index 64b4c966bf..a69cba24ee 100644 --- a/backends/graphics/linuxmotosdl/linuxmotosdl-graphics.cpp +++ b/backends/graphics/linuxmotosdl/linuxmotosdl-graphics.cpp @@ -451,7 +451,8 @@ void LinuxmotoSdlGraphicsManager::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); |