aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2014-11-11 13:31:08 +0100
committerGerd Hoffmann <kraxel@redhat.com>2014-12-17 12:44:01 +0100
commit0d01b7ce617b5f511c852ad770fd7fdce6bf353d (patch)
tree50750ded193bceb1b4222a11d166e2da6273a33c /include
parent2c3056f182e16038c8b0663f68b3b5105899fb75 (diff)
downloadqemu-0d01b7ce617b5f511c852ad770fd7fdce6bf353d.zip
qemu-0d01b7ce617b5f511c852ad770fd7fdce6bf353d.tar.gz
qemu-0d01b7ce617b5f511c852ad770fd7fdce6bf353d.tar.bz2
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 <kraxel@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/ui/sdl2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ui/sdl2.h b/include/ui/sdl2.h
index fd6bfdd..d0ce0b0 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 */