cocoa: Patched to compile on older compilers.
--HG-- extra : rebase_source : 5208ac48839c78cc7c88614cf5eceab92a0d79fc
This commit is contained in:
parent
fa5fc94422
commit
d4ae38e3de
1 changed files with 1 additions and 1 deletions
|
@ -451,7 +451,7 @@ Cocoa_GetDisplayDPI(_THIS, SDL_VideoDisplay * display, float * ddpi, float * hdp
|
||||||
|
|
||||||
/* we need the backingScaleFactor for Retina displays, which is only exposed through NSScreen, not CGDisplay, afaik, so find our screen... */
|
/* we need the backingScaleFactor for Retina displays, which is only exposed through NSScreen, not CGDisplay, afaik, so find our screen... */
|
||||||
CGFloat scaleFactor = 1.0f;
|
CGFloat scaleFactor = 1.0f;
|
||||||
NSArray<NSScreen *> *screens = [NSScreen screens];
|
NSArray *screens = [NSScreen screens];
|
||||||
for (NSScreen *screen in screens) {
|
for (NSScreen *screen in screens) {
|
||||||
const CGDirectDisplayID dpyid = (const CGDirectDisplayID ) [[[screen deviceDescription] objectForKey:@"NSScreenNumber"] unsignedIntValue];
|
const CGDirectDisplayID dpyid = (const CGDirectDisplayID ) [[[screen deviceDescription] objectForKey:@"NSScreenNumber"] unsignedIntValue];
|
||||||
if (dpyid == data->display) {
|
if (dpyid == data->display) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue