diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-30 14:53:22 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-30 14:53:22 +0300 |
commit | 3228d8104af43366ae80713594c5998791e09600 (patch) | |
tree | 578b201facd349d2239cd989515239d57875c479 /src/ui | |
parent | 65451a18a3f6acfd6d641eb48c2253f1f998b9f8 (diff) |
Windows: Improved fix for UI blanking
Must invalidate all buffered visuals if the renderer is reset.
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/window.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 97d56ec5..419e6a0a 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -670,6 +670,7 @@ iBool processEvent_Window(iWindow *d, const SDL_Event *ev) { | |||
670 | case SDL_RENDER_TARGETS_RESET: | 670 | case SDL_RENDER_TARGETS_RESET: |
671 | case SDL_RENDER_DEVICE_RESET: { | 671 | case SDL_RENDER_DEVICE_RESET: { |
672 | resetFonts_Text(); | 672 | resetFonts_Text(); |
673 | postCommand_App("theme.changed"); /* forces UI invalidation */ | ||
673 | break; | 674 | break; |
674 | } | 675 | } |
675 | default: { | 676 | default: { |