i have tried this but I get scambled cursor - it doesn’t look like the
image from
which it’s made. it’s much narrower and I can’t recognize the picture I
wanted there.
when I keep the cursor image width at 8px, everything is ok. but other
sizes such as 16,24,32 are bad.
i tried several images and none of them worked fine.
here is the code. the files (if somebody is willing to try to compile
it) are at http://www.volny.cz/rootshell/SDL_bare.c and
http://www.volny.cz/rootshell/cursor1_noalpha.pngRedHat8.0, X11, Nvidia GFti300
thanks a lot
515
Sorry, my bad, I pasted a wrong version of the conversion routine, replace
the line
cursor = SDL_CreateCursor(data, mask, w, image->h, hx, hy);
with
cursor = SDL_CreateCursor(data, mask, w * 8, image->h, hx, hy);
Regards,
Andre de Leiradella
http://www.geocities.com/andre_leiradella/