aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics
diff options
context:
space:
mode:
authorBastien Bouclet2016-09-18 13:44:20 +0200
committerBastien Bouclet2016-09-18 17:55:09 +0200
commit0f9583e4ca7069b5a978ef52c97426072c93e2f4 (patch)
tree2007f71d11dcca8b5dee66d3813c3c8136a1d527 /backends/graphics
parent75599a4c25ae4d56a86c42f890c378223d6935a1 (diff)
downloadscummvm-rg350-0f9583e4ca7069b5a978ef52c97426072c93e2f4.tar.gz
scummvm-rg350-0f9583e4ca7069b5a978ef52c97426072c93e2f4.tar.bz2
scummvm-rg350-0f9583e4ca7069b5a978ef52c97426072c93e2f4.zip
SDL: Make sure the cloud icon is cleared immediatly after it is hidden
Diffstat (limited to 'backends/graphics')
-rw-r--r--backends/graphics/surfacesdl/surfacesdl-graphics.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
index cd89440929..adb84bfb24 100644
--- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
+++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
@@ -2175,6 +2175,12 @@ void SurfaceSdlGraphicsManager::displayActivityIconOnOSD(const Graphics::Surface
Common::StackLock lock(_graphicsMutex); // Lock the mutex until this function ends
+ if (_osdIconSurface && !icon) {
+ // Add a dirty rect to clear the icon on the next update
+ SDL_Rect dstRect = getOSDIconRect();
+ addDirtyRect(dstRect.x, dstRect.y, dstRect.w, dstRect.h, true);
+ }
+
if (_osdIconSurface) {
SDL_FreeSurface(_osdIconSurface);
_osdIconSurface = nullptr;