diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2012-02-24 12:43:45 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-02-24 13:36:05 -0600 |
commit | 45efb16124efef51de5157afc31984b5a47700f9 (patch) | |
tree | 3f391912a9c7d6172c3abf861bf2e56accdf8aae /console.h | |
parent | 167351020420c285b67cdf0603501b3d3b15e3f7 (diff) | |
download | hqemu-45efb16124efef51de5157afc31984b5a47700f9.zip hqemu-45efb16124efef51de5157afc31984b5a47700f9.tar.gz |
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 <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'console.h')
-rw-r--r-- | console.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |