From 47298ed3189e8d020d58e9201861c4bd2c7e80fd Mon Sep 17 00:00:00 2001 From: Valerio Vitali Date: Fri, 12 Sep 2025 19:19:45 +0200 Subject: [PATCH] fullscreen on/off --- src/unix/unix.c | 3 +++ src/unix/unix_osd.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/unix/unix.c b/src/unix/unix.c index 45f108ef2..cbf41f6ed 100644 --- a/src/unix/unix.c +++ b/src/unix/unix.c @@ -1327,8 +1327,10 @@ main(int argc, char **argv) mouse_inside = 0; break; } + break; } default: + { // route everything else flag_osd_open = osd_handle(event); @@ -1339,6 +1341,7 @@ main(int argc, char **argv) } break; + } } } else diff --git a/src/unix/unix_osd.c b/src/unix/unix_osd.c index 3fbdf723f..5e155367a 100644 --- a/src/unix/unix_osd.c +++ b/src/unix/unix_osd.c @@ -326,6 +326,9 @@ int osd_handle(SDL_Event event) case 11 : // "pause - pause the the emulated system", break; case 12 : // "fullscreen - toggle fullscreen", + unix_executeLine(strdup("fullscreen")); + // directly close the OSD + return 0; break; case 13 : // "version - print version and license information", break;