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

Hide mouse #85

Merged
merged 2 commits into from
Nov 16, 2024
Merged

Hide mouse #85

merged 2 commits into from
Nov 16, 2024

Conversation

mardy
Copy link
Collaborator

@mardy mardy commented Nov 16, 2024

To be reviewed after !84

OpenGX might have set the GPU to perform Z-buffering, triangle culling
and alpha compare in such a way that our mouse cursor will not be drawn.
For that reason, reset them to ensure that our cursor will always be
drawn.

Extra care must be put to restore these registers to the same state in
which SDL had set them before, in order not to break 2D applications.
Applications not explicitly requesting a mouse cursor don't have any
benefit in rendering the default cursor when the wiimote is not pointed
at the screen; on the contrary, the wiimote might be held sideways, and
the cursor would just be disturbing.
@WinterMute WinterMute merged commit 76b9c04 into devkitPro:ogc-sdl-2.28 Nov 16, 2024
28 of 33 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