i have tried this but I get scambled cursor - it doesn’t look like the
which it’s made. it’s much narrower and I can’t recognize the picture I
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
RedHat8.0, X11, Nvidia GFti300
thanks a lot
Sorry, my bad, I pasted a wrong version of the conversion routine, replace
cursor = SDL_CreateCursor(data, mask, w, image->h, hx, hy);
cursor = SDL_CreateCursor(data, mask, w * 8, image->h, hx, hy);
Andre de Leiradella