mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
devicescale: Bug fix: Wrong calculation to convert Y
Updates #807 Fixes #1113
This commit is contained in:
parent
e9508f8fbd
commit
d16477617e
@ -25,7 +25,8 @@ package devicescale
|
||||
//
|
||||
// static float scaleAt(int x, int y) {
|
||||
// // On macOS, the direction of Y axis is inverted from GLFW monitors (#807).
|
||||
// y = -y;
|
||||
// // This is a reverse function of _glfwTransformYNS in GLFW (#1113).
|
||||
// y = CGDisplayBounds(CGMainDisplayID()).size.height - y - 1;
|
||||
//
|
||||
// NSArray<NSScreen*>* screens = [NSScreen screens];
|
||||
// for (NSScreen* screen in screens) {
|
||||
|
Loading…
Reference in New Issue
Block a user