Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for reading X11 cursors #56

Open
pjanx opened this issue Nov 17, 2021 · 3 comments
Open

Add support for reading X11 cursors #56

pjanx opened this issue Nov 17, 2021 · 3 comments

Comments

@pjanx
Copy link
Contributor

pjanx commented Nov 17, 2021

It is an uncompressed format using alpha-premultiplied ARGB32, and it supports animations:
https://www.x.org/releases/current/doc/man/man3/Xcursor.3.xhtml

Reading in only one nominal size would already be useful, e.g., the first contiguous stream of equivalent dimensions in the file.

I might try to implement it myself. I suspect the greatest issue will be handling seeking, since the format uses byte offsets. They are always little-endian, because that is what libXcursor does.

@pjanx
Copy link
Contributor Author

pjanx commented Nov 17, 2021

Actually, I'll special case it for my use case. But it remains an easy enough format to (poorly) support.

@nigeltao
Copy link
Collaborator

Got an example file in that format?

@pjanx
Copy link
Contributor Author

pjanx commented Nov 18, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants