mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 14:18:37 +00:00
SDL: Make sure the cloud icon is cleared immediatly after it is hidden
This commit is contained in:
parent
75599a4c25
commit
0f9583e4ca
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user