mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
console: introduce dpy_gfx_update_full
dpy_gfx_update_full is used to do the whole display surface update. This function is proposed by Gerd Hoffmann. Signed-off-by: Tina Zhang <tina.zhang@intel.com> Message-id: 1524820266-27079-2-git-send-email-tina.zhang@intel.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
4867e47cb6
commit
7cd0afe69f
2 changed files with 11 additions and 0 deletions
10
ui/console.c
10
ui/console.c
|
@ -1574,6 +1574,16 @@ void dpy_gfx_update(QemuConsole *con, int x, int y, int w, int h)
|
|||
}
|
||||
}
|
||||
|
||||
void dpy_gfx_update_full(QemuConsole *con)
|
||||
{
|
||||
if (!con->surface) {
|
||||
return;
|
||||
}
|
||||
dpy_gfx_update(con, 0, 0,
|
||||
surface_width(con->surface),
|
||||
surface_height(con->surface));
|
||||
}
|
||||
|
||||
void dpy_gfx_replace_surface(QemuConsole *con,
|
||||
DisplaySurface *surface)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue