diff options
Diffstat (limited to 'ui/sdl2-2d.c')
-rw-r--r-- | ui/sdl2-2d.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ui/sdl2-2d.c b/ui/sdl2-2d.c index 29ada53552..40a552c7cb 100644 --- a/ui/sdl2-2d.c +++ b/ui/sdl2-2d.c @@ -100,4 +100,15 @@ void sdl2_2d_switch(DisplayChangeListener *dcl, SDL_TEXTUREACCESS_STREAMING, surface_width(new_surface), surface_height(new_surface)); + sdl2_2d_redraw(scon); +} + +void sdl2_2d_redraw(struct sdl2_console *scon) +{ + if (!scon->surface) { + return; + } + sdl2_2d_update(&scon->dcl, 0, 0, + surface_width(scon->surface), + surface_height(scon->surface)); } |