mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
macOS: Embedded window can be dismissed by clicking close
- Installed a SIGINT handler to terminate the application gracefully. - Handle varying display scaling
This commit is contained in:
parent
19bb18716e
commit
f658161619
12 changed files with 144 additions and 70 deletions
|
|
@ -1399,9 +1399,12 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
|||
display_driver = NULL_DISPLAY_DRIVER;
|
||||
|
||||
} else if (arg == "--embedded") { // Enable embedded mode.
|
||||
|
||||
#ifdef MACOS_ENABLED
|
||||
display_driver = EMBEDDED_DISPLAY_DRIVER;
|
||||
|
||||
#else
|
||||
OS::get_singleton()->print("--embedded is only supported on macOS, aborting.\n");
|
||||
goto error;
|
||||
#endif
|
||||
} else if (arg == "--log-file") { // write to log file
|
||||
|
||||
if (N) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue