From: Blue Swirl <blauwirbel@gmail.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/3] cursor: add cursor functions.
Date: Thu, 6 May 2010 22:42:14 +0300 [thread overview]
Message-ID: <t2zf43fc5581005061242rc28e3dbfif6b5278e4be270f8@mail.gmail.com> (raw)
In-Reply-To: <4BE31833.5000904@redhat.com>
On 5/6/10, Gerd Hoffmann <kraxel@redhat.com> wrote:
> >
> > > +static const char cursor_left_ptr_32[32*32] = {
> > > + " "
> > > + " X "
> > > + " XX "
> > > + " X.X "
> > > + " X..X "
> > > + " X...X "
> > > + " X....X "
> > > + " X.....X "
> > > + " X......X "
> > > + " X.......X "
> > > + " X........X "
> > > + " X.....XXXXX "
> > > + " X..X..X "
> > > + " X.X X..X "
> > > + " XX X..X "
> > > + " X X..X "
> > > + " X..X "
> > > + " X..X "
> > > + " X..X "
> > > + " XX "
> > > + " "
> > > +};
> > >
> >
> > Is this format standard?
> >
>
> Inspiried by xpm but simplified a bit as full xpm support just for a
> built-in fallback cursor would have been overkill. The nice thing about xpm
> is that you can use any text editor for editing icons.
But for X bitmaps, you can use any real drawing program. The same
would also apply to full xpm. But read on.
> > How about using X bitmap format instead:
> > $ cat /usr/include/X11/bitmaps/left_ptr
> >
>
>
> > Then there would be no need of parsing.
> >
>
> Well. You still would have to convert it as qemu internal cursor format is
> defined as 32bit depth, rgb with alpha channel. So it doesn't buy you that
> much.
There's still more wasted memory compared to binary format.
I think the best would be to store only the 32 bit image and perform
any conversions offline. This was the approach with for example
keyboard tables, we don't convert them at startup but the original
tables are retained as comments.
next prev parent reply other threads:[~2010-05-06 19:42 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-05 12:51 [Qemu-devel] [PATCH 0/3] local cursor patches Gerd Hoffmann
2010-05-05 12:51 ` [Qemu-devel] [PATCH 1/3] cursor: add cursor functions Gerd Hoffmann
2010-05-06 18:12 ` Blue Swirl
2010-05-06 19:27 ` Gerd Hoffmann
2010-05-06 19:42 ` Blue Swirl [this message]
2010-05-07 7:05 ` [Qemu-devel] " Paolo Bonzini
2010-05-07 15:23 ` Blue Swirl
2010-05-19 8:16 ` Gerd Hoffmann
2010-05-19 18:57 ` Blue Swirl
2010-05-19 19:08 ` Anthony Liguori
2010-05-20 12:49 ` Gerd Hoffmann
2010-05-20 13:17 ` Anthony Liguori
2010-05-05 12:51 ` [Qemu-devel] [PATCH 2/3] use new cursor struct + functions for vmware vga and sdl Gerd Hoffmann
2010-05-05 12:51 ` [Qemu-devel] [PATCH 3/3] vnc: rich cursor support Gerd Hoffmann
-- strict thread matches above, loose matches on Subject: below --
2010-05-21 9:54 [Qemu-devel] [PATCH 0/3] cursor patches Gerd Hoffmann
2010-05-21 9:54 ` [Qemu-devel] [PATCH 1/3] cursor: add cursor functions Gerd Hoffmann
2010-05-21 12:29 ` Anthony Liguori
2010-05-21 18:53 ` Blue Swirl
2010-05-24 20:30 ` Anthony Liguori
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=t2zf43fc5581005061242rc28e3dbfif6b5278e4be270f8@mail.gmail.com \
--to=blauwirbel@gmail.com \
--cc=kraxel@redhat.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 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).