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

@ -184,7 +184,12 @@ add_custom_command(
VERBATIM
)
install(FILES ${CMAKE_SOURCE_DIR}/${OUTPUT_NAME}${FINAL_EXTENSION} LICENSE README.md DESTINATION .)
if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
install(TARGETS ${OUTPUT_NAME} DESTINATION .)
else()
install(FILES ${CMAKE_SOURCE_DIR}/${OUTPUT_NAME}${FINAL_EXTENSION} DESTINATION .)
endif()
install(FILES LICENSE README.md DESTINATION .)
install(DIRECTORY "other licenses" DESTINATION .)
if(WIN32)
install(FILES openal32.dll DESTINATION .)

View File

@ -133,7 +133,6 @@ On Windows, the profiles can be found in the ".config/cc3dsfs" folder inside the
- At startup, the audio may be unstable. It should fix itself, if you give it enough time.
- If, at first, the connection to the 3DS/DS fails, reconnect the 3DS/DS and then try again. If that also doesn't work, try restarting the program. If that also doesn't work, try restarting the computer.
- USB Hubs can be the cause of connection issues. If you're having problems, try checking whether the 3DS/DS connects fine or not without any other devices connected.
- Fullscreen mode on MacOS may mistake the screen for being bigger than what it really is. Changing the resolution to the proper one of the screen in the _Resolution Settings_ under Video Settings will fix the issue.
- Current font in use: OFL Sorts Mill Goudy TT
- Enabling Slow Poll may slightly boost the FPS of the software, at the cost of an extremely slight decrease in frame latency, and slower reaction times of the software to key presses. Disabled by default (as when the FPS are greater than the CC's, it's not reccomended).
- On MacOS, you may get a notice about the app being damaged. It's Apple quaranteening the app. To make it work, open a terminal and run the following:

View File

@ -25,7 +25,9 @@
<key>CFBundleVersion</key>
<string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string>
<key>NSHighResolutionCapable</key>
<true/>
<false/>
<key>NSHighResolutionMagnifyAllowed</key>
<false/>
<key>NSHumanReadableCopyright</key>
<string>${MACOSX_BUNDLE_COPYRIGHT}</string>
</dict>

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();
}