Merge branch '2.6.x' into master

This commit is contained in:
Lukas Dürrenberger 2024-08-22 09:33:43 +01:00 committed by GitHub
commit e192d6e6f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -173,8 +173,7 @@
- (void)setupFullscreenViewWithMode:(const sf::VideoMode&)mode
{
// Create a screen-sized window on the main display
sf::VideoMode desktop = sf::VideoMode::getDesktopMode();
sf::priv::scaleInXY(desktop.size, nil);
const sf::VideoMode desktop = sf::VideoMode::getDesktopMode();
NSRect windowRect = NSMakeRect(0, 0, desktop.size.x, desktop.size.y);
m_window = [[SFWindow alloc]
initWithContentRect:windowRect
@ -433,8 +432,7 @@
{
// Special case when fullscreen: only resize the opengl view
// and make sure the requested size is not bigger than the window.
sf::VideoMode desktop = sf::VideoMode::getDesktopMode();
sf::priv::scaleInXY(desktop.size, nil);
const sf::VideoMode desktop = sf::VideoMode::getDesktopMode();
size.x = std::min(size.x, desktop.size.x);
size.y = std::min(size.y, desktop.size.y);