| Summary: | SDL_GetDisplayDPI returns incorrect result on MacOS with retina screens | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Rokas Kupstys <rokupstys> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | icculus, sezeroz |
| Version: | 2.0.10 | Keywords: | target-2.0.12 |
| Hardware: | x86_64 | ||
| OS: | Mac OS X (All) | ||
|
Description
Rokas Kupstys
2019-11-11 15:19:50 UTC
Pushed a fix for this in https://hg.libsdl.org/SDL/rev/3b03741c0095 ...someone should check my math (should we scale before doing the diagonal DPI math, etc?), and see if there's a better way to get an NSScreen from a CGDirectDisplay, maybe, but it finds the correct scaling factor on my retina macbook. Reopen the bug if there's still a problem, please! --ryan. |