qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] console: console_select: check for nop


From: Alon Levy
Subject: [Qemu-devel] [PATCH] console: console_select: check for nop
Date: Tue, 11 Oct 2011 16:58:40 +0200

Signed-off-by: Alon Levy <address@hidden>
---
qxl screen_dump is broken since f81bdefb6. That commit didn't introduce
the problem, the problem is in qxl. But I've not managed to figure out
the real problem yet. This patch works around it, but in a nice way - if
you only have a single console or never set the other consoles active
then there will not be a displaysurface reallocation which is the cause
of the wrong rendering.

To see rendering errors, run with sdl and spice, then do a screen dump.
 The sdl screen will be updated with zeros (not quite - it's pointing at
 a wrong location that is almost but not totally zeroed).

 console.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/console.c b/console.c
index e43de92..7f0900f 100644
--- a/console.c
+++ b/console.c
@@ -1067,6 +1067,9 @@ void console_select(unsigned int index)
 
     if (index >= MAX_CONSOLES)
         return;
+    if (active_console == consoles[index]) {
+        return;
+    }
     if (active_console) {
         active_console->g_width = ds_get_width(active_console->ds);
         active_console->g_height = ds_get_height(active_console->ds);
-- 
1.7.6.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]