Skip to content

Commit

Permalink
SDL: Make sure the cloud icon is cleared immediatly after it is hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
bgK committed Sep 18, 2016
1 parent 75599a4 commit 0f9583e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions backends/graphics/surfacesdl/surfacesdl-graphics.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 0f9583e

Please sign in to comment.