mirror of
https://github.com/Lorenzooone/cc3dsfs.git
synced 2026-08-11 19:35:59 -05:00
Try fixing macos fullscreen issues
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user