From 45efb16124efef51de5157afc31984b5a47700f9 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 24 Feb 2012 12:43:45 +0100 Subject: optimize screendump for the common non-switch case switch console only if needed, also pass down whenever the console was switched or not because a displaysurface redraw is only needed in case the console was switched. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori --- hw/g364fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/g364fb.c') diff --git a/hw/g364fb.c b/hw/g364fb.c index 9c63bddc59..3a0b68fbae 100644 --- a/hw/g364fb.c +++ b/hw/g364fb.c @@ -289,7 +289,7 @@ static void g364fb_reset(G364State *s) g364fb_invalidate_display(s); } -static void g364fb_screen_dump(void *opaque, const char *filename) +static void g364fb_screen_dump(void *opaque, const char *filename, bool cswitch) { G364State *s = opaque; int y, x; -- cgit v1.2.3