Skip to contentSkip to conversation

[4901] Pretend to be the active console while a screendump takes place ( Avi Kivity).

Qemu-devel Andrzej Zaborowski 1 participant 1 message Jul 19, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 4901

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4901
Author:   balrog
Date:     2008-07-19 13:04:26 +0000 (Sat, 19 Jul 2008)

Log Message:
-----------
Pretend to be the active console while a screendump takes place (Avi Kivity).

Modified Paths:
--------------
trunk/console.c

Modified: trunk/console.c
===================================================================

console.c +6 -1
@@ -167,10 +167,15 @@
 
 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)