| Summary: | SDL_GetGlobalMouseState() returns incorrect Y on secondary display | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Julian Raschke <julian> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | rasky, sezeroz |
| Version: | 2.0.8 | ||
| Hardware: | x86_64 | ||
| OS: | macOS 10.13 | ||
| Attachments: | Fix for the bug on OSX | ||
|
Description
Julian Raschke
2018-09-09 09:49:45 UTC
Created attachment 3545 [details]
Fix for the bug on OSX
I have the same problem: SDL_GetGlobalMouseState() is wrong on double monitor setups on OSX.
The fix suggested in this bug perfectly works. I'm attaching a patch that allows me to use SDL_GetGlobalMouseState() on double-monitor setups correctly. Please apply the fix.
Ping! Can we get this applied? Patch added, thanks! https://hg.libsdl.org/SDL/rev/74e8ace1b2c3 |