raduprv / Eternal-Lands

http://www.eternal-lands.com
Other
158 stars 57 forks source link

Wakko asked: Can we change the mouse cursor colour? #75

Closed pjbroad closed 2 years ago

pjbroad commented 4 years ago

EL currently uses SDL functions for the cursor and so its just black/white pixels. https://wiki.libsdl.org/SDL_CreateCursor

Wakko asked about using textures. The is a disabled feature in the code base enabled with #NEW_CURSOR that implements this change. It does not currently work because there is no texture and the code was not updated properly when we moved to the new texture code years ago.

Lets fix up the code and see if we should enable it....

gvissers commented 4 years ago

I haven't really looked into this, but the documentation also mentions SDL_CreateColorCursor. Might that be useful?

pjbroad commented 2 years ago

This was done a while ago and now available to all via 1.9.6.