diff options
author | Avi Kivity <avi@qumranet.com> | 2008-07-10 15:55:07 +0300 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-07-10 16:06:35 +0300 |
commit | 480a9bf08f997c9a2eb9c89a8b2234a8134032c9 (patch) | |
tree | 3ca98624c1f3288c34be8ef8e04f90ac841ab052 | |
parent | 588e917161fa1fed97712a5094d600afcf86f652 (diff) |
Fix screendump with multiple consoles
pretend to be the active console while a screendump takes place.
Signed-off-by: Avi Kivity <avi@qumranet.com>
-rw-r--r-- | console.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -167,10 +167,15 @@ void vga_hw_invalidate(void) void vga_hw_screen_dump(const char *filename) { + TextConsole *previous_active_console; + + previous_active_console = active_console; + active_console = consoles[0]; /* There is currently no was of specifying which screen we want to dump, so always dump the dirst one. */ if (consoles[0]->hw_screen_dump) consoles[0]->hw_screen_dump(consoles[0]->hw, filename); + active_console = previous_active_console; } void vga_hw_text_update(console_ch_t *chardata) |