Try fixing macos fullscreen issues

This commit is contained in:
Lorenzooone
2024-06-22 23:41:47 +02:00
parent 5996b1f663
commit ef8b5b77a9
4 changed files with 9 additions and 22 deletions

View File

@@ -3,9 +3,6 @@
#include <cstring>
#include "font_ttf.h"
#define DEFAULT_FS_WIDTH 1920
#define DEFAULT_FS_HEIGHT 1080
#define LEFT_ROUNDED_PADDING 5
#define RIGHT_ROUNDED_PADDING 5
#define TOP_ROUNDED_PADDING 0
@@ -765,22 +762,6 @@ void WindowScreen::create_window(bool re_prepare_size) {
success = true;
}
}
#ifdef __APPLE__
if(!success) {
sf::VideoMode mode_created = sf::VideoMode(DEFAULT_FS_WIDTH, DEFAULT_FS_HEIGHT, 32);
if(mode_created.isValid()) {
this->curr_desk_mode = mode_created;
success = true;
}
else {
mode_created = sf::VideoMode(DEFAULT_FS_WIDTH, DEFAULT_FS_HEIGHT, 24);
if(mode_created.isValid()) {
this->curr_desk_mode = mode_created;
success = true;
}
}
}
#endif
if(!success) {
this->curr_desk_mode = sf::VideoMode::getDesktopMode();
}