Skip to content

Conversation

@jholveck
Copy link
Contributor

Currently, the _merge method expects straight (not premultiplied) alpha. That's what XFixes sends, and that's the only way we get cursor images today, so that's ok.

In the future, we might want to switch to using premultiplied alpha. It's easier to composite, and it's just as fast in the case where we get straight alpha and faster (and easier) if we get premultiplied alpha.

On the other hand, on non-Linux platforms, we might prefer to merge the cursor differently, such as with DrawIconEx, so we might change cursor handling altogether.

Currently, the _merge method expects straight (not premultiplied) alpha.  That's what XFixes sends, and that's the only way we get cursor images today, so that's ok.

In the future, we might want to switch to using premultiplied alpha.  It's easier to composite, and it's just as fast in the case where we get straight alpha and faster (and easier) if we get premultiplied alpha.

On the other hand, on non-Linux platforms, we might prefer to merge the cursor differently, such as with DrawIconEx, so we might change cursor handling altogether.
@BoboTiG BoboTiG merged commit e3307f0 into BoboTiG:main Jan 20, 2026
21 checks passed
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

Successfully merging this pull request may close these issues.

2 participants