We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5098

Summary: macOS CreateWindowFrom doesn't work with high-dpi displays
Product: SDL Reporter: michaeljosephmaltese
Component: videoAssignee: 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

Description michaeljosephmaltese 2020-04-19 02:39:00 UTC
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.
Comment 1 michaeljosephmaltese 2020-05-08 20:32:52 UTC
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.
Comment 2 Sam Lantinga 2020-05-11 21:36:50 UTC
Patch added, thanks!
https://hg.libsdl.org/SDL/rev/ccd76043c80e