From: Jean Guyader Date: Wed, 10 Dec 2008 17:36:34 +0000 (+0000) Subject: Fix the rendering issue with other frontend than intel. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e6d5dffae00214857637fbca6d4c57944570f5b0;p=xenclient%2Fioemu.git Fix the rendering issue with other frontend than intel. --- diff --git a/console.h b/console.h index 9322c65b..1e396413 100644 --- a/console.h +++ b/console.h @@ -175,6 +175,7 @@ void intel_display_init(DisplayState *ds); void intel_focus(int focus); int intel_getfocus(void); void intel_take_screenshot(const char *filename); +extern int intel_output; extern uint32_t guest_framebuffer; void unset_vga_acc(void); void set_vga_acc(void); diff --git a/hw/vga.c b/hw/vga.c index 371362b2..723aa6b6 100644 --- a/hw/vga.c +++ b/hw/vga.c @@ -1481,7 +1481,7 @@ static void vga_draw_graphic(VGAState *s, int full_update) full_update = 1; } /* XXX this works only if intel.c is the frontend */ - if (s->ds->shared_buf) + if (s->ds->shared_buf && intel_output) return; s->rgb_to_pixel =