Skip to content

Commit

Permalink
OPENGL: Make sure the cloud icon is cleared immediatly after it is hi…
Browse files Browse the repository at this point in the history
…dden
  • Loading branch information
bgK committed Sep 18, 2016
1 parent 0f9583e commit 5e133cd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions backends/graphics/opengl/opengl-graphics.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 5e133cd

Please sign in to comment.