mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
devicescale: Bug fix: Need to consider Y axis direction on macOS
Fixes #807
This commit is contained in:
parent
e03d344c2d
commit
219ca9b09e
@ -24,6 +24,9 @@ package devicescale
|
|||||||
// #import <AppKit/AppKit.h>
|
// #import <AppKit/AppKit.h>
|
||||||
//
|
//
|
||||||
// static float scaleAt(int x, int y) {
|
// 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];
|
// NSArray<NSScreen*>* screens = [NSScreen screens];
|
||||||
// for (NSScreen* screen in screens) {
|
// for (NSScreen* screen in screens) {
|
||||||
// if (NSPointInRect(NSMakePoint(x, y), [screen frame])) {
|
// if (NSPointInRect(NSMakePoint(x, y), [screen frame])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user