qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Reimar Döffinger" <Reimar.Doeffinger@gmx.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH] sdl.c: support 32 bpp cursors
Date: Mon, 17 Aug 2009 19:01:54 +0200	[thread overview]
Message-ID: <20090817170154.GA1893@1und1.de> (raw)
In-Reply-To: <4A8989C9.8060302@gnu.org>

On Mon, Aug 17, 2009 at 06:48:09PM +0200, Paolo Bonzini wrote:
> On 08/17/2009 05:58 PM, Reimar Döffinger wrote:
> > The thing I am unsure about though is which byte is the unused one and
> > should be skipped, the first or the last - for the black-and-white
> > cursors I tested it doesn't make a difference...
> 
> You could skip the one that is always zero.  If none is, then one of the 
> bytes is the alpha and you should either skip no byte, or set src _just 
> to that_ byte.

There is no alpha, there is already a mask that defines transparency,
the 4th byte is only padding and should be ignored, just like for the
framebuffer (where that issue even made it into the FAQ since some
library incorrectly treated that as alpha which gave strange effects).
Well, at least that's how I am convinced it should be, I have not yet
found a specification or even proper documentation for this stuff (I
admit I haven't looked too hard).

      reply	other threads:[~2009-08-17 17:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-17 15:58 [Qemu-devel] [PATCH] sdl.c: support 32 bpp cursors Reimar Döffinger
2009-08-17 16:48 ` [Qemu-devel] " Paolo Bonzini
2009-08-17 17:01   ` Reimar Döffinger [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=20090817170154.GA1893@1und1.de \
    --to=reimar.doeffinger@gmx.de \
    --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 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).