mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
devicescale: Bug fix: Need to consider Y axis direction on macOS
Fixes #807
This commit is contained in:
parent
8e42484294
commit
4273f1982d
@ -24,6 +24,9 @@ package devicescale
|
||||
// #import <AppKit/AppKit.h>
|
||||
//
|
||||
// static float scaleAt(int x, int y) {
|
||||
// // On macOS, the direction of Y axis is inverted from GLFW monitors (#807).
|
||||
// y = -y;
|
||||
//
|
||||
// NSArray<NSScreen*>* screens = [NSScreen screens];
|
||||
// for (NSScreen* screen in screens) {
|
||||
// if (NSPointInRect(NSMakePoint(x, y), [screen frame])) {
|
||||
|
Loading…
Reference in New Issue
Block a user