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 --- console.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'console.h') diff --git a/console.h b/console.h index c33ffe0..a95b581 100644 --- a/console.h +++ b/console.h @@ -340,7 +340,7 @@ static inline void console_write_ch(console_ch_t *dest, uint32_t ch) typedef void (*vga_hw_update_ptr)(void *); typedef void (*vga_hw_invalidate_ptr)(void *); -typedef void (*vga_hw_screen_dump_ptr)(void *, const char *); +typedef void (*vga_hw_screen_dump_ptr)(void *, const char *, bool cswitch); typedef void (*vga_hw_text_update_ptr)(void *, console_ch_t *); DisplayState *graphic_console_init(vga_hw_update_ptr update, -- cgit v1.1