[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 02/23] hw/vmware_vga.c: fix screen resize bug introd
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 02/23] hw/vmware_vga.c: fix screen resize bug introduced after console revamp |
Date: |
Wed, 20 Mar 2013 10:43:24 +0100 |
From: Igor Mitsyanko <address@hidden>
In vmsvga display update function, a pointer to DisplaySurface must be acquired
after a call to vmsvga_check_size since this function might replace current
DisplaySurface with a new one.
Signed-off-by: Igor Mitsyanko <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/vmware_vga.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c
index 5b9ce8f..c0aac31 100644
--- a/hw/vmware_vga.c
+++ b/hw/vmware_vga.c
@@ -995,7 +995,7 @@ static inline void vmsvga_check_size(struct vmsvga_state_s
*s)
static void vmsvga_update_display(void *opaque)
{
struct vmsvga_state_s *s = opaque;
- DisplaySurface *surface = qemu_console_surface(s->vga.con);
+ DisplaySurface *surface;
bool dirty = false;
if (!s->enable) {
@@ -1004,6 +1004,7 @@ static void vmsvga_update_display(void *opaque)
}
vmsvga_check_size(s);
+ surface = qemu_console_surface(s->vga.con);
vmsvga_fifo_run(s);
vmsvga_update_rect_flush(s);
--
1.7.9.7
- [Qemu-devel] [PATCH v2 00/23] console: overhaul continued, Gerd Hoffmann, 2013/03/20
- [Qemu-devel] [PATCH 04/23] pixman: render vgafont glyphs into pixman images, Gerd Hoffmann, 2013/03/20
- [Qemu-devel] [PATCH 03/23] pixman: add qemu_pixman_color(), Gerd Hoffmann, 2013/03/20
- [Qemu-devel] [PATCH 08/23] console: add trace events, Gerd Hoffmann, 2013/03/20
- [Qemu-devel] [PATCH 06/23] console: use pixman for font rendering, Gerd Hoffmann, 2013/03/20
- [Qemu-devel] [PATCH 05/23] console: use pixman for fill+blit, Gerd Hoffmann, 2013/03/20
- [Qemu-devel] [PATCH 01/23] exynos4210_fimd.c: fix display resize bug introduced after console revamp, Gerd Hoffmann, 2013/03/20
- [Qemu-devel] [PATCH 11/23] console: give each QemuConsole its own DisplaySurface, Gerd Hoffmann, 2013/03/20
- [Qemu-devel] [PATCH 02/23] hw/vmware_vga.c: fix screen resize bug introduced after console revamp,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 09/23] console: displaystate init revamp, Gerd Hoffmann, 2013/03/20
- [Qemu-devel] [PATCH 13/23] console: zap g_width + g_height, Gerd Hoffmann, 2013/03/20
- [Qemu-devel] [PATCH 21/23] gtk: custom cursor support, Gerd Hoffmann, 2013/03/20
[Qemu-devel] [PATCH 15/23] console: make DisplayState private to console.c, Gerd Hoffmann, 2013/03/20
[Qemu-devel] [PATCH 10/23] console: rename vga_hw_*, add QemuConsole param, Gerd Hoffmann, 2013/03/20