]> xenbits.xensource.com Git - qemu-xen-4.5-testing.git/commitdiff
Fix for vga_save_dpy_resize (vga_screen_dump) prototype wrt linesize etc.
authorIan Jackson <iwj@mariner.uk.xensource.com>
Fri, 6 Jun 2008 17:04:11 +0000 (18:04 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 6 Jun 2008 17:04:11 +0000 (18:04 +0100)
Patch kindly supplied by Stefano Stabellini.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
hw/vga.c
hw/xenfb.c

index fca220f3427677f564bf997d8eff525e4332219f..4fda5015d51c516916fe63a7b78da46477edef53 100644 (file)
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -2326,7 +2326,7 @@ static void vga_save_dpy_update(DisplayState *s,
 {
 }
 
-static void vga_save_dpy_resize(DisplayState *s, int w, int h, int linesize)
+static void vga_save_dpy_resize(DisplayState *s, int w, int h)
 {
     s->linesize = w * 4;
     s->data = qemu_malloc(h * s->linesize);
index 2917d5c98b2481fb757b0c9efb18f1e4ec36d82e..c684cdceff4deeff93f43d6b4339f1c9db222a30 100644 (file)
@@ -1438,7 +1438,6 @@ static void xenfb_pv_colourdepth(DisplayState *ds, int depth)
         ds->data = NULL;
     } else {
         ds->data = xs->nonshared_vram;
-        fbfront_resize(fb_dev, ds->width, ds->height, ds->linesize, ds->depth, VGA_RAM_SIZE);
     }
 }