From 0d01b7ce617b5f511c852ad770fd7fdce6bf353d Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 11 Nov 2014 13:31:08 +0100 Subject: sdl2: add+use sdl2_2d_redraw function. Add a new sdl2_2d_redraw function for a complete screen refresh, so we can stop using graphic_hw_invalidate for that. There is no need to bother console / gfx emulation code if we are just going to re-blit the screen after window resizes. Signed-off-by: Gerd Hoffmann Reviewed-by: Max Reitz --- include/ui/sdl2.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/ui/sdl2.h b/include/ui/sdl2.h index fd6bfdd46d..d0ce0b0f9c 100644 --- a/include/ui/sdl2.h +++ b/include/ui/sdl2.h @@ -25,5 +25,6 @@ void sdl2_2d_update(DisplayChangeListener *dcl, int x, int y, int w, int h); void sdl2_2d_switch(DisplayChangeListener *dcl, DisplaySurface *new_surface); +void sdl2_2d_redraw(struct sdl2_console *scon); #endif /* SDL2_H */ -- cgit v1.2.1