Skip to content

Conversation

@Sethur
Copy link

@Sethur Sethur commented Dec 5, 2025

Fixed an issue where m_flMouseYScale was incorrectly calculated in fullscreen mode for devices with display-integrated camera notch on Mac OS.

With the improper m_flMouseYScale value, clicking on menu items, buttons, etc. meant that you had to aim below the actual button, etc.

In the fix, SDL_GL_GetDrawableSize is used to get the proper drawable area.

Tested on Mac OS on an MacBook Air M2. Works for all offered resolutions, windowed and fullscreen.

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.

1 participant