* [Qemu-devel] [PATCH] console: console_select: check for nop
@ 2011-10-11 14:58 Alon Levy
0 siblings, 0 replies; only message in thread
From: Alon Levy @ 2011-10-11 14:58 UTC (permalink / raw)
To: qemu-devel; +Cc: kraxel
Signed-off-by: Alon Levy <alevy@redhat.com>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-10-11 15:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-11 14:58 [Qemu-devel] [PATCH] console: console_select: check for nop Alon Levy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).