qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/3] cursor: add cursor functions.


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH 1/3] cursor: add cursor functions.
Date: Thu, 06 May 2010 21:27:47 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Thunderbird/3.0.4

  +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.

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.

cheers,
  Gerd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]