OSDN Git Service

qxl: stop direct access to DisplaySurface fields.
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 10 Oct 2012 11:02:14 +0000 (13:02 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 1 Nov 2012 13:00:04 +0000 (14:00 +0100)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/qxl-render.c

index 47eb8b4..98ecb21 100644 (file)
@@ -24,7 +24,7 @@
 static void qxl_blit(PCIQXLDevice *qxl, QXLRect *rect)
 {
     uint8_t *src;
-    uint8_t *dst = qxl->vga.ds->surface->data;
+    uint8_t *dst = ds_get_data(qxl->vga.ds);
     int len, i;
 
     if (is_buffer_shared(qxl->vga.ds->surface)) {