sdl2: add+use sdl2_2d_redraw function.
commit0d01b7ce617b5f511c852ad770fd7fdce6bf353d
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 11 Nov 2014 12:31:08 +0000 (11 13:31 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 17 Dec 2014 11:44:01 +0000 (17 12:44 +0100)
tree50750ded193bceb1b4222a11d166e2da6273a33c
parent2c3056f182e16038c8b0663f68b3b5105899fb75
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>
include/ui/sdl2.h
ui/sdl2-2d.c
ui/sdl2.c