diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-07-19 13:04:26 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-07-19 13:04:26 +0000 |
commit | 8571c05566d5fa72e720426c13175453c7021055 (patch) | |
tree | 031937856adb9c983fcac69ea2a04ec16eec0bbe /console.c | |
parent | a87aa10b85dcaf8e1a4cc962edbd562a96f78650 (diff) |
Pretend to be the active console while a screendump takes place (Avi Kivity).
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4901 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'console.c')
-rw-r--r-- | console.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -167,10 +167,15 @@ void vga_hw_invalidate(void) void vga_hw_screen_dump(const char *filename) { - /* There is currently no was of specifying which screen we want to dump, + TextConsole *previous_active_console; + + previous_active_console = active_console; + active_console = consoles[0]; + /* There is currently no way 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) |