Sign in to follow this  

X hardware true color cursors

This topic is 4477 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi Stoiko,

If you are setting the cursor using xlib I don't believe you will be able to set the cursor colour depth higher than 2 colours. I know it's not what you asked for but if you do want to use xlib to draw the cursor you can use pixmaps and the function XCreatePixmapCursor().

You should be able to use a GC to convert from BMP to pixmap if you have need to do it on the fly rather than just a one off cursor (which would make more sense as a pixmap from the start obviously).

I haven't done enough openGL in Xlib to know how to load cursors in that so maybe loading the cursor using opengl might be an option?

Share this post

Link to post
Share on other sites
Sign in to follow this