From 074e613bbbae00fb73b97f071f25c6d2823e3729 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 12 Nov 2021 03:03:56 -0800
Subject: [PATCH] Fixed typo
---
src/video/cocoa/SDL_cocoawindow.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m
index 7908646b6b..37b4c1540d 100644
--- a/src/video/cocoa/SDL_cocoawindow.m
+++ b/src/video/cocoa/SDL_cocoawindow.m
@@ -423,7 +423,7 @@ static void ConvertNSRect(NSScreen *screen, BOOL fullscreen, NSRect *r)
rect.origin.y = [nswindow contentLayoutRect].size.height - mouse_rect.y - mouse_rect.h;
rect.size.width = mouse_rect.w;
rect.size.height = mouse_rect.h;
- data->nswindow.mouseConfinementRect = rect;
+ nswindow.mouseConfinementRect = rect;
}
} else {
/* Move the cursor to the nearest point in the window */