From b293888c7dcf11bb6198ade4990043c226edcdc1 Mon Sep 17 00:00:00 2001 From: Mirko Galimberti Date: Tue, 26 Apr 2022 19:44:34 +0200 Subject: [PATCH] Fixes an issue introduced via #5573 when building for i686 --- 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 ea520e4b8..3dd012d1b 100644 --- a/src/video/cocoa/SDL_cocoawindow.m +++ b/src/video/cocoa/SDL_cocoawindow.m @@ -2210,7 +2210,7 @@ int Cocoa_GetWindowDisplayIndex(_THIS, SDL_Window * window){ instead of checking in which display the window is placed, we should check which SDL display matches the display described via displayframe. */ - CGRect displayframe = data->nswindow.screen.frame; + NSRect displayframe = data->nswindow.screen.frame; SDL_Point display_center; SDL_Rect sdl_display_rect;