aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorBastien Bouclet2016-09-18 13:45:07 +0200
committerBastien Bouclet2016-09-18 17:55:09 +0200
commit5e133cdd344de7224edb260bd2c5531ab689e64a (patch)
tree1f1af5a40af3f03209a7d78e341186d893c0197f /backends
parent0f9583e4ca7069b5a978ef52c97426072c93e2f4 (diff)
downloadscummvm-rg350-5e133cdd344de7224edb260bd2c5531ab689e64a.tar.gz
scummvm-rg350-5e133cdd344de7224edb260bd2c5531ab689e64a.tar.bz2
scummvm-rg350-5e133cdd344de7224edb260bd2c5531ab689e64a.zip
OPENGL: Make sure the cloud icon is cleared immediatly after it is hidden
Diffstat (limited to 'backends')
-rw-r--r--backends/graphics/opengl/opengl-graphics.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp
index 4c74b7780d..41f35e29eb 100644
--- a/backends/graphics/opengl/opengl-graphics.cpp
+++ b/backends/graphics/opengl/opengl-graphics.cpp
@@ -808,8 +808,13 @@ void OpenGLGraphicsManager::osdMessageUpdateSurface() {
void OpenGLGraphicsManager::displayActivityIconOnOSD(const Graphics::Surface *icon) {
#ifdef USE_OSD
- delete _osdIconSurface;
- _osdIconSurface = nullptr;
+ if (_osdIconSurface) {
+ delete _osdIconSurface;
+ _osdIconSurface = nullptr;
+
+ // Make sure the icon is cleared on the next update
+ _forceRedraw = true;
+ }
if (icon) {
Graphics::Surface *converted = icon->convertTo(_defaultFormatAlpha);