* [PATCH] Fix color problems with sdl on bgr displays
@ 2007-10-14 13:52 Avi Kivity
[not found] ` <47121F0F.9020804-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Avi Kivity @ 2007-10-14 13:52 UTC (permalink / raw)
To: qemu-devel-qX2TKyscuCcdnm+yROfE0A; +Cc: kvm-devel
[-- Attachment #1: Type: text/plain, Size: 356 bytes --]
Some kvm users complained that the blue and red channels are flipped on
their displays. Reverting sdl.c rev 1.40 fixed that problem, so
apparently that commit made the problem larger than it was previously.
Attached a patch the removes the commit and fixes the problem. Please
apply.
--
error compiling committee.c: too many arguments to function
[-- Attachment #2: sdl-bgr.patch --]
[-- Type: text/x-patch, Size: 552 bytes --]
Index: sdl.c
===================================================================
RCS file: /sources/qemu/qemu/sdl.c,v
retrieving revision 1.44
diff -u -r1.44 sdl.c
--- sdl.c 17 Sep 2007 08:09:45 -0000 1.44
+++ sdl.c 14 Oct 2007 13:49:37 -0000
@@ -87,7 +87,7 @@
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;
[-- Attachment #3: Type: text/plain, Size: 314 bytes --]
-------------------------------------------------------------------------
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/
[-- Attachment #4: Type: text/plain, Size: 186 bytes --]
_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] Fix color problems with sdl on bgr displays
[not found] ` <47121F0F.9020804-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
@ 2007-10-14 14:27 ` Blue Swirl
[not found] ` <f43fc5580710140727r19452244i4ad86cc31b50e7f3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Blue Swirl @ 2007-10-14 14:27 UTC (permalink / raw)
To: qemu-devel-qX2TKyscuCcdnm+yROfE0A; +Cc: kvm-devel
On 10/14/07, Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org> wrote:
> Some kvm users complained that the blue and red channels are flipped on
> their displays. Reverting sdl.c rev 1.40 fixed that problem, so
> apparently that commit made the problem larger than it was previously.
>
> Attached a patch the removes the commit and fixes the problem. Please
> apply.
But this commit was previously reported as the best solution for OSX
(Intel, PPC) and Linux/PPC:
http://article.gmane.org/gmane.comp.emulators.qemu/18071
What kind of machines are the users using?
-------------------------------------------------------------------------
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] Fix color problems with sdl on bgr displays
[not found] ` <f43fc5580710140727r19452244i4ad86cc31b50e7f3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2007-10-14 14:36 ` Avi Kivity
0 siblings, 0 replies; 3+ messages in thread
From: Avi Kivity @ 2007-10-14 14:36 UTC (permalink / raw)
To: Blue Swirl; +Cc: kvm-devel, qemu-devel-qX2TKyscuCcdnm+yROfE0A
Blue Swirl wrote:
> On 10/14/07, Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org> wrote:
>
>> Some kvm users complained that the blue and red channels are flipped on
>> their displays. Reverting sdl.c rev 1.40 fixed that problem, so
>> apparently that commit made the problem larger than it was previously.
>>
>> Attached a patch the removes the commit and fixes the problem. Please
>> apply.
>>
>
> But this commit was previously reported as the best solution for OSX
> (Intel, PPC) and Linux/PPC:
> http://article.gmane.org/gmane.comp.emulators.qemu/18071
>
> What kind of machines are the users using?
>
No idea, but I got two xdpyinfo logs and both indicated a bgr display.
Perhaps we see here a difference between how SDL behaves on different
platforms. Or maybe the test needs to be more subtle.
I haven't had any reports of wrong colors before; of course kvm users
don't run Linux/PPC os OSX/anything.
--
error compiling committee.c: too many arguments to function
-------------------------------------------------------------------------
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-10-14 14:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-14 13:52 [PATCH] Fix color problems with sdl on bgr displays Avi Kivity
[not found] ` <47121F0F.9020804-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-14 14:27 ` [Qemu-devel] " Blue Swirl
[not found] ` <f43fc5580710140727r19452244i4ad86cc31b50e7f3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-10-14 14:36 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox