[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 02/24] hw/vmware_vga.c: fix screen resize bug in
From: |
Alexandru Damian |
Subject: |
Re: [Qemu-devel] [PATCH 02/24] hw/vmware_vga.c: fix screen resize bug introduced after console revamp |
Date: |
Fri, 5 Apr 2013 14:21:54 +0300 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
+1, verified to work with both 16-bit and 32-bit depth consoles.
Alex
On Thu, Apr 04, 2013 at 09:28:44AM +0200, Gerd Hoffmann wrote:
> 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 v3 00/24] console: console overhaul continued, Gerd Hoffmann, 2013/04/04
- [Qemu-devel] [PATCH 03/24] hw/vmware_vga.c: add tracepoints for mmio reads+writes, Gerd Hoffmann, 2013/04/04
- [Qemu-devel] [PATCH 02/24] hw/vmware_vga.c: fix screen resize bug introduced after console revamp, Gerd Hoffmann, 2013/04/04
- Re: [Qemu-devel] [PATCH 02/24] hw/vmware_vga.c: fix screen resize bug introduced after console revamp,
Alexandru Damian <=
- [Qemu-devel] [PATCH 06/24] pixman: render vgafont glyphs into pixman images, Gerd Hoffmann, 2013/04/04
- [Qemu-devel] [PATCH 09/24] console: switch color_table_rgb to pixman_color_t, Gerd Hoffmann, 2013/04/04
- [Qemu-devel] [PATCH 10/24] console: add trace events, Gerd Hoffmann, 2013/04/04
- [Qemu-devel] [PATCH 04/24] hw/vmware_vga.c: various vmware vga fixes., Gerd Hoffmann, 2013/04/04
- [Qemu-devel] [PATCH 11/24] console: displaystate init revamp, Gerd Hoffmann, 2013/04/04
- [Qemu-devel] [PATCH 13/24] console: give each QemuConsole its own DisplaySurface, Gerd Hoffmann, 2013/04/04
- [Qemu-devel] [PATCH 08/24] console: use pixman for font rendering, Gerd Hoffmann, 2013/04/04
- [Qemu-devel] [PATCH 07/24] console: use pixman for fill+blit, Gerd Hoffmann, 2013/04/04
- [Qemu-devel] [PATCH 15/24] console: zap g_width + g_height, Gerd Hoffmann, 2013/04/04
- [Qemu-devel] [PATCH 05/24] pixman: add qemu_pixman_color(), Gerd Hoffmann, 2013/04/04