From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 3 of 5] [UPDATE] remove bgr
Date: Fri, 21 Nov 2008 18:43:29 +0000 [thread overview]
Message-ID: <49270151.7030206@eu.citrix.com> (raw)
In-Reply-To: <4926FCB2.3030002@codemonkey.ws>
Anthony Liguori wrote:
> Stefano Stabellini wrote:
>> Do not handle bgr host displays in the backends.
>>
>
> -ETOOLITTLEDESCRIPTION
>
> Seriously though, where does bgr get handled now? Have you tested on a
> bgr display?
>
> The bgr code is notoriously easy to break right now so changes need
> testing.
>
Sorry you are right :)
I have written a little bit more about this in the first patch.
Right now a bgr flag exists so that sdl can set it, if the SDL_Surface
is bgr.
Afterwards vga.c does the needed conversion.
With my patches is sdl that is responsible for rendering the format
provided by vga.
Vga provides a DisplaySurface (ds->surface) in 16 or 32 bpp, rgb or bgr
does not matter.
Afterwards sdl creates a SDL_Surface from the given DisplaySurface and
blits it into the main SDL_Surface using SDL_BlitSurface.
Look at: sdl.c:sdl_setdata and sdl.c:sdl_update.
Everything is handled by sdl transparently.
No I didn't test it with a real bgr display ;)
prev parent reply other threads:[~2008-11-21 18:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-21 17:07 [Qemu-devel] [PATCH 3 of 5] [UPDATE] remove bgr Stefano Stabellini
2008-11-21 18:23 ` Anthony Liguori
2008-11-21 18:43 ` Stefano Stabellini [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49270151.7030206@eu.citrix.com \
--to=stefano.stabellini@eu.citrix.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.