From 79a235b20a6833fe5bdc78b52921cdd2ad12f284 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 6 Jun 2008 18:04:11 +0100 Subject: [PATCH] Fix for vga_save_dpy_resize (vga_screen_dump) prototype wrt linesize etc. Patch kindly supplied by Stefano Stabellini. Signed-off-by: Ian Jackson --- hw/vga.c | 2 +- hw/xenfb.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/vga.c b/hw/vga.c index fca220f3..4fda5015 100644 --- 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); diff --git a/hw/xenfb.c b/hw/xenfb.c index 2917d5c9..c684cdce 100644 --- a/hw/xenfb.c +++ b/hw/xenfb.c @@ -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); } } -- 2.39.5