sdl.c: support 32 bpp cursors
commit52668cf7b376ed17f1190266190fb4016ab85a49
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 23 Aug 2009 16:03:34 +0000 (23 18:03 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 28 Aug 2009 02:23:38 +0000 (27 21:23 -0500)
tree640ffea99c9a9ad0bdfff5bc55de877f9c1510ae
parentd2bb9964d1c52ff73e75f7c081f631bf5effda08
sdl.c: support 32 bpp cursors

Hello,
currently when a 32 bpp cursor gets defined the result is all-black in
the areas that are not transparent (you'll get a 32 bpp cursor if you
use my previous patch to allow vmware_vga to use a 32 bpp framebuffer).
This is because the switch in sdl.c lacks a 32 bpp case.
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...

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Andrzej Zaborowski <balrogg@gmail.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
sdl.c