aboutsummaryrefslogtreecommitdiff
path: root/emulators/dosbox-x/files/patch-src_gui_sdl__gui.cpp
diff options
context:
space:
mode:
authorNeel Chauhan <nc@FreeBSD.org>2022-07-23 20:49:29 +0000
committerNeel Chauhan <nc@FreeBSD.org>2022-07-23 20:49:29 +0000
commita87b17148e63e359c426eab9e67d954bc090bfe5 (patch)
treec38b1be9a03f5aed746c4ad769c764100f8c3424 /emulators/dosbox-x/files/patch-src_gui_sdl__gui.cpp
parent9da256a46aa0dd84a5605dcc4defcbbe4b855548 (diff)
Diffstat (limited to 'emulators/dosbox-x/files/patch-src_gui_sdl__gui.cpp')
-rw-r--r--emulators/dosbox-x/files/patch-src_gui_sdl__gui.cpp38
1 files changed, 18 insertions, 20 deletions
diff --git a/emulators/dosbox-x/files/patch-src_gui_sdl__gui.cpp b/emulators/dosbox-x/files/patch-src_gui_sdl__gui.cpp
index 75caa4925894..9c5d8ba5efca 100644
--- a/emulators/dosbox-x/files/patch-src_gui_sdl__gui.cpp
+++ b/emulators/dosbox-x/files/patch-src_gui_sdl__gui.cpp
@@ -1,33 +1,31 @@
---- src/gui/sdl_gui.cpp.orig 2022-05-01 06:25:42 UTC
+--- src/gui/sdl_gui.cpp.orig 2022-07-23 20:37:25 UTC
+++ src/gui/sdl_gui.cpp
-@@ -3059,7 +3059,7 @@ class ConfigurationWindow : public GUI::ToplevelWindow
- std::string url = "https://dosbox-x.com/";
- #if defined(WIN32)
- ShellExecute(NULL, "open", url.c_str(), NULL, NULL, SW_SHOWNORMAL);
--#elif defined(LINUX)
-+#elif defined(LINUX) || defined(__FreeBSD__)
- system(("xdg-open "+url).c_str());
- #elif defined(MACOSX)
- system(("open "+url).c_str());
-@@ -3475,7 +3475,11 @@ void GUI_Shortcut(int select) {
- PIC_AddEvent(RunCfgTool, 100);
+@@ -3563,6 +3563,7 @@ void GUI_Shortcut(int select) {
+ shortcutid=select;
+ shortcut=true;
+ sel = select;
++#ifndef __FreeBSD__
+ #if defined(USE_TTF)
+ if (ttf.inUse && !confres) {
+ ttf_switch_off();
+@@ -3572,12 +3573,14 @@ void GUI_Shortcut(int select) {
} else
#endif
-+#ifdef __FreeBSD__
-+ RunCfgTool(0);
-+#else
RunCfgTool(NULL);
+#endif
}
void GUI_Run(bool pressed) {
-@@ -3490,5 +3494,9 @@ void GUI_Run(bool pressed) {
- PIC_AddEvent(RunCfgTool, 100);
+ if (pressed || running) return;
+
+ sel = -1;
++#ifndef __FreeBSD__
+ #if defined(USE_TTF)
+ if (ttf.inUse) {
+ ttf_switch_off();
+@@ -3587,4 +3590,5 @@ void GUI_Run(bool pressed) {
} else
#endif
-+#ifdef __FreeBSD__
-+ RunCfgTool(0);
-+#else
RunCfgTool(NULL);
+#endif
}