devicescale: Bug fix: Need to consider Y axis direction on macOS

Fixes #807
This commit is contained in:
Hajime Hoshi 2019-02-10 23:34:13 +09:00
parent e03d344c2d
commit 219ca9b09e

View File

@ -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])) {