From 82be3227312b6ed3bfea331a55be56c0081bb011 Mon Sep 17 00:00:00 2001 From: Marco Antognini Date: Wed, 6 Jun 2012 13:36:21 +0200 Subject: [PATCH] Fixed Mac OS X fullscreen mode --- src/SFML/Window/OSX/SFWindowController.mm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/SFML/Window/OSX/SFWindowController.mm b/src/SFML/Window/OSX/SFWindowController.mm index dc0c2fe4..3511d752 100644 --- a/src/SFML/Window/OSX/SFWindowController.mm +++ b/src/SFML/Window/OSX/SFWindowController.mm @@ -317,7 +317,11 @@ //////////////////////////////////////////////////////// -(NSSize)size { - return [m_oglView frame].size; + if (*m_fullscreenMode == sf::VideoMode()) { + return [m_oglView frame].size; + } else { + return NSMakeSize(m_fullscreenMode->width, m_fullscreenMode->height); + } }