[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 17/22] vga: stop direct access to DisplaySurface fie
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 17/22] vga: stop direct access to DisplaySurface fields. |
Date: |
Thu, 1 Nov 2012 14:04:12 +0100 |
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/vga.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/hw/vga.c b/hw/vga.c
index f31dbdd..1188463 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -1709,8 +1709,13 @@ static void vga_draw_graphic(VGACommonState *s, int
full_update)
s->last_depth = depth;
full_update = 1;
} else if (is_buffer_shared(s->ds->surface) &&
- (full_update || s->ds->surface->data != s->vram_ptr +
(s->start_addr * 4))) {
- s->ds->surface->data = s->vram_ptr + (s->start_addr * 4);
+ (full_update || ds_get_data(s->ds) != s->vram_ptr
+ + (s->start_addr * 4))) {
+ qemu_free_displaysurface(s->ds);
+ s->ds->surface = qemu_create_displaysurface_from(disp_width,
+ height, depth,
+ s->line_offset,
+ s->vram_ptr + (s->start_addr * 4));
dpy_gfx_setdata(s->ds);
}
--
1.7.1
- [Qemu-devel] [PATCH 07/22] vga: fix text mode updating, (continued)
- [Qemu-devel] [PATCH 07/22] vga: fix text mode updating, Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 10/22] pixman: add submodule, Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 18/22] pixman: switch screendump function., Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 20/22] pixman/vnc: remove rgb_prepare_row* functions, Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 03/22] console: move set_mouse + cursor_define callbacks, Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 04/22] console: s/TextConsole/QemuConsole/, Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 12/22] pixman: helper functions, Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 15/22] console: don't set PixelFormat alpha fields for 32bpp, Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 11/22] pixman: windup in configure & makefiles, Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 13/22] pixman: add pixman image to DisplaySurface, Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 17/22] vga: stop direct access to DisplaySurface fields.,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 06/22] console: init displaychangelisteners on register, Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 16/22] qxl: stop direct access to DisplaySurface fields., Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 22/22] pixman: drop obsolete fields from DisplaySurface, Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 21/22] pixman/vnc: remove dead code., Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 05/22] console: untangle gfx & txt updates, Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 02/22] console: add unregister_displaychangelistener, Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 09/22] console: remove DisplayAllocator, Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 19/22] pixman/vnc: use pixman images in vnc., Gerd Hoffmann, 2012/11/01