Fix metal

This commit is contained in:
luboslenco
2025-06-30 11:59:54 +02:00
parent 16a34004a6
commit 570b3d89aa
3 changed files with 235 additions and 298 deletions
+1 -1
View File
@@ -268,7 +268,7 @@ static int getMouseX(NSEvent *event) {
static int getMouseY(NSEvent *event) {
NSWindow *window = [[NSApplication sharedApplication] mainWindow];
float scale = [window backingScaleFactor];
return (int)(iron_height() - [event locationInWindow].y * scale);
return (int)(iron_window_height() - [event locationInWindow].y * scale);
}
static bool controlKeyMouseButton = false;