mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 12:51:05 +08:00
Fixed Mac OS X fullscreen mode
This commit is contained in:
parent
8eb5073c33
commit
82be322731
@ -317,7 +317,11 @@
|
|||||||
////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////
|
||||||
-(NSSize)size
|
-(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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user