| Summary: | macOS CreateWindowFrom doesn't work with high-dpi displays | ||
|---|---|---|---|
| Product: | SDL | Reporter: | michaeljosephmaltese |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0.13 | ||
| Hardware: | All | ||
| OS: | Mac OS X (All) | ||
| Attachments: | [PATCH] cocoa: ask for highdpi surface in CreateWindowFrom | ||
Any updates on this? This directly impacts the use of https://bugzilla.libsdl.org/show_bug.cgi?id=5060 , which is marked as target-2.0.14. Happy to work on the patch more if you'd like anything changed. Patch added, thanks! https://hg.libsdl.org/SDL/rev/ccd76043c80e |
Created attachment 4311 [details] [PATCH] cocoa: ask for highdpi surface in CreateWindowFrom Display ends up taking only 1/4 of the screen area. It needs to call "setWantsBestResolutionOpenGLSurface:highdpi", like when creating a window the normal way.