Fixed Mac OS X fullscreen mode

This commit is contained in:
Marco Antognini 2012-06-06 13:36:21 +02:00
parent 8eb5073c33
commit 82be322731

View File

@ -317,7 +317,11 @@
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////
-(NSSize)size -(NSSize)size
{ {
if (*m_fullscreenMode == sf::VideoMode()) {
return [m_oglView frame].size; return [m_oglView frame].size;
} else {
return NSMakeSize(m_fullscreenMode->width, m_fullscreenMode->height);
}
} }