mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
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>
This commit is contained in:
parent
2c3056f182
commit
0d01b7ce61
3 changed files with 18 additions and 11 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue