[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 1/3] cursor: add cursor functions.
From: |
Blue Swirl |
Subject: |
[Qemu-devel] Re: [PATCH 1/3] cursor: add cursor functions. |
Date: |
Wed, 19 May 2010 21:57:15 +0300 |
On 5/19/10, Gerd Hoffmann <address@hidden> wrote:
> >
> > >
> > > > Then there would be no need of parsing.
> > > >
> > >
> > > You would need _two_ bitmaps (e.g. mask and cursor, so that mask=1
> gives
> > > transparent, mask=0 cursor=0 gives black and mask=0 cursor=1 gives
> white).
> > >
> >
> > Yes, but it's still packed more efficiently.
> >
>
> Well. You can't have both. We can have a efficiently packed format (i.e.
> two bitmaps). Or we can do it in a way which doesn't need parsing, but that
> wouldn't be the most compact format ...
You're right, so packing or introducing a small conversion function is
not critical. I'd still prefer a standard format if possible.
> > There's yet another way:
> > #define _ 0,
> > #define X 0xff000000,
> > #define o 0xffffffff,
> > {
> > _ _ _ X o X _ _ _
> > }
> > #undef _
> > #undef X
> > #undef o
> >
>
> Neat idea ;)
>
> cheers,
> Gerd
>
>
- [Qemu-devel] [PATCH 0/3] local cursor patches., Gerd Hoffmann, 2010/05/05
- [Qemu-devel] [PATCH 2/3] use new cursor struct + functions for vmware vga and sdl., Gerd Hoffmann, 2010/05/05
- [Qemu-devel] [PATCH 3/3] vnc: rich cursor support., Gerd Hoffmann, 2010/05/05
- [Qemu-devel] [PATCH 1/3] cursor: add cursor functions., Gerd Hoffmann, 2010/05/05
- Re: [Qemu-devel] [PATCH 1/3] cursor: add cursor functions., Blue Swirl, 2010/05/06
- [Qemu-devel] Re: [PATCH 1/3] cursor: add cursor functions., Paolo Bonzini, 2010/05/07
- [Qemu-devel] Re: [PATCH 1/3] cursor: add cursor functions., Blue Swirl, 2010/05/07
- [Qemu-devel] Re: [PATCH 1/3] cursor: add cursor functions., Gerd Hoffmann, 2010/05/19
- [Qemu-devel] Re: [PATCH 1/3] cursor: add cursor functions.,
Blue Swirl <=
- Re: [Qemu-devel] Re: [PATCH 1/3] cursor: add cursor functions., Anthony Liguori, 2010/05/19
- Re: [Qemu-devel] Re: [PATCH 1/3] cursor: add cursor functions., Gerd Hoffmann, 2010/05/20
- Re: [Qemu-devel] Re: [PATCH 1/3] cursor: add cursor functions., Anthony Liguori, 2010/05/20