From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: vga color Date: Mon, 08 Oct 2007 11:52:43 +0200 Message-ID: <4709FDEB.3000302@qumranet.com> References: <10EA09EFD8728347A513008B6B0DA77A02125F46@pdsmsx411.ccr.corp.intel.com> <4709E6FA.4030100@qumranet.com> <10EA09EFD8728347A513008B6B0DA77A02125F47@pdsmsx411.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090404070107000403020504" Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: "Zhao, Yunfeng" Return-path: In-Reply-To: <10EA09EFD8728347A513008B6B0DA77A02125F47-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org This is a multi-part message in MIME format. --------------090404070107000403020504 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Zhao, Yunfeng wrote: > All our machines for KVM testing have the problem. > I attached the output of "xdpyinfo" on one of them. > > Please try the attached patch. -- Any sufficiently difficult bug is indistinguishable from a feature. --------------090404070107000403020504 Content-Type: text/x-patch; name="bgr.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="bgr.patch" diff --git a/qemu/sdl.c b/qemu/sdl.c index 02500c9..3f3b719 100644 --- a/qemu/sdl.c +++ b/qemu/sdl.c @@ -87,7 +87,7 @@ static void sdl_resize(DisplayState *ds, int w, int h) ds->data = screen->pixels; ds->linesize = screen->pitch; ds->depth = screen->format->BitsPerPixel; - if (screen->format->Bshift > screen->format->Rshift) { + if (ds->depth == 32 && screen->format->Rshift == 0) { ds->bgr = 1; } else { ds->bgr = 0; --------------090404070107000403020504 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ --------------090404070107000403020504 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --------------090404070107000403020504--