From: balrog Date: Sat, 19 Jul 2008 13:04:26 +0000 (+0000) Subject: Pretend to be the active console while a screendump takes place (Avi Kivity). X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~14385 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8571c05566d5fa72e720426c13175453c7021055;p=sdk%2Femulator%2Fqemu.git Pretend to be the active console while a screendump takes place (Avi Kivity). Signed-off-by: Avi Kivity Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4901 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/console.c b/console.c index a1bc769..bc0c349 100644 --- a/console.c +++ b/console.c @@ -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)