devicescale: Use mainScreen instead of screens[0] to get the 'current' screen state

This commit is contained in:
Hajime Hoshi 2018-08-05 19:18:40 +09:00
parent 063edfcc4a
commit af77a17aaa

View File

@ -24,7 +24,7 @@ package devicescale
// #import <AppKit/AppKit.h> // #import <AppKit/AppKit.h>
// //
// static float scale() { // static float scale() {
// NSScreen* primary = [[NSScreen screens] firstObject]; // NSScreen* primary = [NSScreen mainScreen];
// return [primary backingScaleFactor]; // return [primary backingScaleFactor];
// } // }
import "C" import "C"