[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC v4 1/9] console: don't call console_select unnecessari
From: |
Alon Levy |
Subject: |
[Qemu-devel] [RFC v4 1/9] console: don't call console_select unnecessarily |
Date: |
Tue, 21 Feb 2012 23:39:29 +0200 |
From: Gerd Hoffman <address@hidden>
Tested-by: Alon Levy <address@hidden>
---
console.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/console.c b/console.c
index 135394f..cfcc2f7 100644
--- a/console.c
+++ b/console.c
@@ -181,12 +181,14 @@ void vga_hw_screen_dump(const char *filename)
/* There is currently no way of specifying which screen we want to dump,
so always dump the first one. */
- console_select(0);
+ if (previous_active_console && previous_active_console->index != 0) {
+ console_select(0);
+ }
if (consoles[0] && consoles[0]->hw_screen_dump) {
consoles[0]->hw_screen_dump(consoles[0]->hw, filename);
}
- if (previous_active_console) {
+ if (previous_active_console && previous_active_console->index != 0) {
console_select(previous_active_console->index);
}
}
--
1.7.9.1
- [Qemu-devel] [RFC v4 0/9] qxl: fix hangs caused by qxl_render_update, Alon Levy, 2012/02/21
- [Qemu-devel] [RFC v4 1/9] console: don't call console_select unnecessarily,
Alon Levy <=
- [Qemu-devel] [RFC v4 2/9] sdl: remove NULL check, g_malloc0 can't fail, Alon Levy, 2012/02/21
- [Qemu-devel] [RFC v4 3/9] qxl: drop qxl_spice_update_area_async definition, Alon Levy, 2012/02/21
- [Qemu-devel] [RFC v4 4/9] qxl: screen_dump in vga: do a single ppm_save, Alon Levy, 2012/02/21
- Re: [Qemu-devel] [RFC v4 4/9] qxl: screen_dump in vga: do a single ppm_save, Gerd Hoffmann, 2012/02/22
- Re: [Qemu-devel] [RFC v4 4/9] qxl: screen_dump in vga: do a single ppm_save, Alon Levy, 2012/02/22
- Re: [Qemu-devel] [RFC v4 4/9] qxl: screen_dump in vga: do a single ppm_save, Gerd Hoffmann, 2012/02/22
- Re: [Qemu-devel] [Spice-devel] [RFC v4 4/9] qxl: screen_dump in vga: do a single ppm_save, Alon Levy, 2012/02/22
- Re: [Qemu-devel] [Spice-devel] [RFC v4 4/9] qxl: screen_dump in vga: do a single ppm_save, Gerd Hoffmann, 2012/02/22
- Re: [Qemu-devel] [Spice-devel] [RFC v4 4/9] qxl: screen_dump in vga: do a single ppm_save, Alon Levy, 2012/02/22
[Qemu-devel] [RFC v4 6/9] qxl: remove flipped, Alon Levy, 2012/02/21