mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[client,sdl] fix hidden dialog update
This commit is contained in:
@@ -293,8 +293,8 @@ int SdlInputWidgetPairList::run(std::vector<std::string>& result)
|
||||
auto rc = SDL_RenderPresent(_renderer.get());
|
||||
if (!rc)
|
||||
{
|
||||
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION, "SDL_RenderPresent failed with %s",
|
||||
SDL_GetError());
|
||||
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION, "[%s] SDL_RenderPresent failed with %s",
|
||||
__func__, SDL_GetError());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -44,6 +44,9 @@ bool SdlWidgetList::clearWindow()
|
||||
|
||||
bool SdlWidgetList::update()
|
||||
{
|
||||
if (!visible())
|
||||
return true;
|
||||
|
||||
clearWindow();
|
||||
updateInternal();
|
||||
if (!_buttons.update())
|
||||
@@ -51,7 +54,7 @@ bool SdlWidgetList::update()
|
||||
auto rc = SDL_RenderPresent(_renderer.get());
|
||||
if (!rc)
|
||||
{
|
||||
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION, "SDL_RenderPresent failed with %s",
|
||||
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION, "[%s] SDL_RenderPresent failed with %s", __func__,
|
||||
SDL_GetError());
|
||||
}
|
||||
return rc;
|
||||
|
||||
Reference in New Issue
Block a user