diff --git a/src/SFML/Window/OSX/SFWindowController.mm b/src/SFML/Window/OSX/SFWindowController.mm index 47f0caf4..d6cb3003 100644 --- a/src/SFML/Window/OSX/SFWindowController.mm +++ b/src/SFML/Window/OSX/SFWindowController.mm @@ -630,8 +630,7 @@ NSDictionary* deviceDescription = [[m_window screen] deviceDescription]; NSNumber* screenNumber = [deviceDescription valueForKey:@"NSScreenNumber"]; CGDirectDisplayID screenID = static_cast([screenNumber intValue]); - CGFloat height = CGDisplayPixelsHigh(screenID); - return static_cast(height); + return static_cast(CGDisplayPixelsHigh(screenID)); }