[hatari-devel] MacOsX Patch for full Screen

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi,

Below, a little patch to handle error message while in full screen (do not show MacOsX Alert in FullScreen).

JV

******

diff -r b5572c218299 src/gui-sdl/dlgAlert.c
--- a/src/gui-sdl/dlgAlert.c    Sun Jun 08 20:49:49 2014 +0200
+++ b/src/gui-sdl/dlgAlert.c    Mon Jun 09 16:41:31 2014 +0200
@@ -176,8 +176,11 @@
  */
 int DlgAlert_Notice(const char *text)
 {
-#ifdef ALERT_HOOKS
-       return HookedAlertNotice(text);
+
+#ifdef ALERT_HOOKS
+       if (!Main_UnPauseEmulation())
+               Main_PauseEmulation(true);
+       if(!bInFullScreen) return HookedAlertNotice(text);
 #endif

        /* Hide "cancel" button: */
@@ -200,7 +203,7 @@
 int DlgAlert_Query(const char *text)
 {
 #ifdef ALERT_HOOKS
-       return HookedAlertQuery(text);
+        if(!bInFullScreen) return HookedAlertQuery(text);
 #endif

        /* Show "cancel" button: */




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/