mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
devicescale: Use mainScreen instead of screens[0] to get the 'current' screen state
This commit is contained in:
parent
063edfcc4a
commit
af77a17aaa
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user