]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
4010 4010
authorToni Wilen <twilen@winuae.net>
Mon, 16 Jul 2018 20:40:23 +0000 (23:40 +0300)
committerToni Wilen <twilen@winuae.net>
Mon, 16 Jul 2018 20:42:50 +0000 (23:42 +0300)
od-win32/win32.cpp
od-win32/win32.h
od-win32/win32gui.cpp
od-win32/winuaechangelog.txt
od-win32/wix/Product.wxs

index 50b3cb993b20bd1b036e5bda3b91f2f082fa4663..f2bcac69ec540b2ba60ac08bf9adfaee6d282cc4 100644 (file)
@@ -904,21 +904,31 @@ static bool iswindowfocus(struct AmigaMonitor *mon)
        HWND fw = GetForegroundWindow ();
        HWND w1 = mon->hAmigaWnd;
        HWND w2 = mon->hMainWnd;
-       HWND w3 = NULL;
-#ifdef RETROPLATFORM
-       if (rp_isactive ())
-               w3 = rp_getparent ();
-#endif
+
        if (f != w1 && f != w2)
                donotfocus = true;
-       if (w3 != NULL && f == w3)
-               donotfocus = false;
-#if 0
+
+       
+       //write_log(_T("f=%p fw=%p w1=%p w2=%p\n"), f, fw, w1, w2);
+
 #ifdef RETROPLATFORM
-       if (rp_isactive () && isfullscreen () == 0)
-               donotfocus = false;
-#endif
+       if (rp_isactive()) {
+               HWND hGuestParent = rp_getparent();
+               DWORD dwHostProcessId;
+               GetWindowThreadProcessId(hGuestParent, &dwHostProcessId);
+               if (fw) {
+                       DWORD dwForegroundProcessId = 0;
+                       GetWindowThreadProcessId(fw, &dwForegroundProcessId);
+
+                       //write_log(_T("dwForegroundProcessId=%p dwHostProcessId=%p\n"), dwForegroundProcessId, dwHostProcessId);
+
+                       if (dwForegroundProcessId == dwHostProcessId) {
+                               donotfocus = false;
+                       }
+               }
+       }
 #endif
+
        if (isfullscreen () > 0)
                donotfocus = false;
        return donotfocus == false;
index 88e87df2d3355cabef2a1a8bbc682e1446577495..ee1600bb606d5aff4c5edb9fb7241ba32e82885a 100644 (file)
@@ -15,7 +15,7 @@
 #define GETBDM(x) (((x) - ((x / 10000) * 10000)) / 100)
 #define GETBDD(x) ((x) % 100)
 
-#define WINUAEPUBLICBETA 1
+#define WINUAEPUBLICBETA 0
 #define LANG_DLL 1
 #define LANG_DLL_FULL_VERSION_MATCH 0
 
@@ -25,7 +25,7 @@
 #define WINUAEBETA _T("")
 #endif
 
-#define WINUAEDATE MAKEBD(2018, 7, 14)
+#define WINUAEDATE MAKEBD(2018, 7, 16)
 
 //#define WINUAEEXTRA _T("AmiKit Preview")
 //#define WINUAEEXTRA _T("Amiga Forever Edition")
index c8acdfa43718a99ee7d0d00abd52d1e7fc295667..f2cfe16877406047eab70711a79341a342975425 100644 (file)
@@ -6958,7 +6958,7 @@ static void enable_for_displaydlg (HWND hDlg)
                ew(hDlg, IDC_SCREENMODE_NATIVE3, FALSE);
                hide(hDlg, IDC_SCREENMODE_NATIVE3, TRUE);
        }
-#ifdef WINUAEPUBLICBETA
+#if WINUAEPUBLICBETA
        hide(hDlg, IDC_DISPLAY_VARSYNC, FALSE);
 #endif
 }
index 93868e98ff64a418431167671d532cd0795dbf78..eadde8bfcec31f9fa3da95610cca3f84f74f2556 100644 (file)
@@ -1,4 +1,6 @@
 \r
+4.0.1\r
+\r
 Beta 6:\r
 \r
 - Statefiles now include full relative and absolute path (disks, harddrives etc), now supports restoring statefile paths correctly even if relative path mode changed between save and restore. Old versions ignore new fields, old statefiles work like previously.\r
index 0c4846c2ebb5f57bf9297fd29edc6c119dedf4f7..3c095505a5d561daebea2db2397883f588e04527 100644 (file)
@@ -2,8 +2,8 @@
 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
 
   <?define ProductName = "WinUAE" ?>
-  <?define ProductVersion = "4.0.0" ?>
-  <?define ProductFullVersion = "4.0.0.0" ?>
+  <?define ProductVersion = "4.0.1" ?>
+  <?define ProductFullVersion = "4.0.1.0" ?>
   <?define ProductAuthor = "Arabuusimiehet" ?>
 
   <?if $(var.Platform) = x64 ?>