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

Letterbox mouse coordinate interference #2

Open
KelvinShadewing opened this issue Jul 26, 2016 · 1 comment
Open

Letterbox mouse coordinate interference #2

KelvinShadewing opened this issue Jul 26, 2016 · 1 comment

Comments

@KelvinShadewing
Copy link
Owner

When scaling a window so the aspect ratio no longer matches the game's, getting the mouse coordinates does not work properly anymore because the letterbox width/height changes the position of the game window. SDL2 appears to be getting mouse position from the top left of the window itself instead of the renderer.

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

No branches or pull requests

2 participants