+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