diff --git a/client/SDL/SDL3/dialogs/sdl_input_widget_pair_list.cpp b/client/SDL/SDL3/dialogs/sdl_input_widget_pair_list.cpp index f55548c04..9c2f3882d 100644 --- a/client/SDL/SDL3/dialogs/sdl_input_widget_pair_list.cpp +++ b/client/SDL/SDL3/dialogs/sdl_input_widget_pair_list.cpp @@ -293,8 +293,8 @@ int SdlInputWidgetPairList::run(std::vector& 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()); } } diff --git a/client/SDL/SDL3/dialogs/sdl_widget_list.cpp b/client/SDL/SDL3/dialogs/sdl_widget_list.cpp index 042f80eac..15fd15fd2 100644 --- a/client/SDL/SDL3/dialogs/sdl_widget_list.cpp +++ b/client/SDL/SDL3/dialogs/sdl_widget_list.cpp @@ -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;