Commit 8571c05566d5fa72e720426c13175453c7021055

Authored by balrog
1 parent a87aa10b

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
Showing 1 changed file with 6 additions and 1 deletions
console.c
... ... @@ -167,10 +167,15 @@ void vga_hw_invalidate(void)
167 167  
168 168 void vga_hw_screen_dump(const char *filename)
169 169 {
170   - /* There is currently no was of specifying which screen we want to dump,
  170 + TextConsole *previous_active_console;
  171 +
  172 + previous_active_console = active_console;
  173 + active_console = consoles[0];
  174 + /* There is currently no way of specifying which screen we want to dump,
171 175 so always dump the dirst one. */
172 176 if (consoles[0]->hw_screen_dump)
173 177 consoles[0]->hw_screen_dump(consoles[0]->hw, filename);
  178 + active_console = previous_active_console;
174 179 }
175 180  
176 181 void vga_hw_text_update(console_ch_t *chardata)
... ...