[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 09/14] vga: stop direct access to DisplaySurface fie
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 09/14] vga: stop direct access to DisplaySurface fields. |
Date: |
Wed, 17 Oct 2012 15:29:09 +0200 |
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 a0ba94d..4d34469 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -1718,8 +1718,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 00/14] pixman patch series., Gerd Hoffmann, 2012/10/17
- [Qemu-devel] [PATCH 09/14] vga: stop direct access to DisplaySurface fields.,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 04/14] pixman: helper functions, Gerd Hoffmann, 2012/10/17
- [Qemu-devel] [PATCH 13/14] pixman/vnc: remove dead code., Gerd Hoffmann, 2012/10/17
- [Qemu-devel] [PATCH 01/14] console: remove DisplayAllocator, Gerd Hoffmann, 2012/10/17
- [Qemu-devel] [PATCH 05/14] pixman: add pixman image to DisplaySurface, Gerd Hoffmann, 2012/10/17
- [Qemu-devel] [PATCH 02/14] pixman: add submodule, Gerd Hoffmann, 2012/10/17
- [Qemu-devel] [PATCH 08/14] qxl: stop direct access to DisplaySurface fields., Gerd Hoffmann, 2012/10/17
- [Qemu-devel] [PATCH 10/14] pixman: switch screendump function., Gerd Hoffmann, 2012/10/17
- [Qemu-devel] [PATCH 06/14] console: make qemu_alloc_display static, Gerd Hoffmann, 2012/10/17
- [Qemu-devel] [PATCH 12/14] pixman/vnc: remove rgb_prepare_row* functions, Gerd Hoffmann, 2012/10/17
- [Qemu-devel] [PATCH 07/14] console: don't set PixelFormat alpha fields for 32bpp, Gerd Hoffmann, 2012/10/17