mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
sdl2: move sdl2_2d_refresh to sdl2-2d.c
Now that common event handling code is split off, we can move over sdl_refresh to sdl2-2d.c, and rename it to sdl2_2d_refresh. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
63ed4907cb
commit
62959ffe45
3 changed files with 10 additions and 9 deletions
|
@ -103,6 +103,14 @@ void sdl2_2d_switch(DisplayChangeListener *dcl,
|
|||
sdl2_2d_redraw(scon);
|
||||
}
|
||||
|
||||
void sdl2_2d_refresh(DisplayChangeListener *dcl)
|
||||
{
|
||||
struct sdl2_console *scon = container_of(dcl, struct sdl2_console, dcl);
|
||||
|
||||
graphic_hw_update(dcl->con);
|
||||
sdl2_poll_events(scon);
|
||||
}
|
||||
|
||||
void sdl2_2d_redraw(struct sdl2_console *scon)
|
||||
{
|
||||
if (!scon->surface) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue