From 08c4ea294f38fa90c7e91d7402091ff8332bc65e Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 1 Mar 2012 08:34:40 +0100 Subject: fix screendump Commit 45efb16124efef51de5157afc31984b5a47700f9 optimized a bit too much. We can skip the vga_invalidate_display() in case no console switch happened because we don't need a full redraw then. We can *not* skip vga_hw_update() though, because the screen content will be stale then in case nobody else calls vga_hw_update(). Trigger: vga textmode with vnc display and no client connected. Reported-by: Avi Kivity Signed-off-by: Gerd Hoffmann Reviewed-by: Alon Levy Tested-by: Avi Kivity Signed-off-by: Blue Swirl --- hw/vga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/vga.c') diff --git a/hw/vga.c b/hw/vga.c index 6dc98f6c2a..f80860caed 100644 --- a/hw/vga.c +++ b/hw/vga.c @@ -2415,7 +2415,7 @@ static void vga_screen_dump(void *opaque, const char *filename, bool cswitch) if (cswitch) { vga_invalidate_display(s); - vga_hw_update(); } + vga_hw_update(); ppm_save(filename, s->ds->surface); } -- cgit v1.2.3