[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 5/6] console: introduce dpy_gfx_update_full
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 5/6] console: introduce dpy_gfx_update_full |
Date: |
Fri, 27 Apr 2018 11:54:33 +0200 |
From: Tina Zhang <address@hidden>
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 <address@hidden>
Message-id: address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>
---
include/ui/console.h | 1 +
ui/console.c | 10 ++++++++++
2 files changed, 11 insertions(+)
diff --git a/include/ui/console.h b/include/ui/console.h
index 37a8d68d29..981b519dde 100644
--- a/include/ui/console.h
+++ b/include/ui/console.h
@@ -291,6 +291,7 @@ bool dpy_ui_info_supported(QemuConsole *con);
int dpy_set_ui_info(QemuConsole *con, QemuUIInfo *info);
void dpy_gfx_update(QemuConsole *con, int x, int y, int w, int h);
+void dpy_gfx_update_full(QemuConsole *con);
void dpy_gfx_replace_surface(QemuConsole *con,
DisplaySurface *surface);
void dpy_text_cursor(QemuConsole *con, int x, int y);
diff --git a/ui/console.c b/ui/console.c
index 3fb2f4e09f..b02510cdca 100644
--- a/ui/console.c
+++ b/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)
{
--
2.9.3
- [Qemu-devel] [PULL 0/6] Ui 20180427 patches, Gerd Hoffmann, 2018/04/27
- [Qemu-devel] [PULL 4/6] sdl: Allow OpenGL ES context creation, Gerd Hoffmann, 2018/04/27
- [Qemu-devel] [PULL 6/6] ui: introduce vfio_display_reset, Gerd Hoffmann, 2018/04/27
- [Qemu-devel] [PULL 5/6] console: introduce dpy_gfx_update_full,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 2/6] qapi: Parameter gl of DisplayType now accept an enum, Gerd Hoffmann, 2018/04/27
- [Qemu-devel] [PULL 3/6] sdl: Move DisplayOptions global to sdl2_console, Gerd Hoffmann, 2018/04/27
- [Qemu-devel] [PULL 1/6] vnc: fix use-after-free, Gerd Hoffmann, 2018/04/27
- Re: [Qemu-devel] [PULL 0/6] Ui 20180427 patches, Peter Maydell, 2018/04/27