summaryrefslogtreecommitdiffstats
path: root/src/skel/win/win.cpp
diff options
context:
space:
mode:
authorFire_Head <Fire-Head@users.noreply.github.com>2020-03-29 17:39:47 +0200
committerGitHub <noreply@github.com>2020-03-29 17:39:47 +0200
commita0b077574e95e49ad845a6c9dc1af906b17277f9 (patch)
treede9f8dbd0e3c06ffbb95b13c0637dfc3db3873c1 /src/skel/win/win.cpp
parentstyle & cosmetic fixes (diff)
parentMerge pull request #367 from Sergeanur/wrappers_cleanup (diff)
downloadre3-a0b077574e95e49ad845a6c9dc1af906b17277f9.tar
re3-a0b077574e95e49ad845a6c9dc1af906b17277f9.tar.gz
re3-a0b077574e95e49ad845a6c9dc1af906b17277f9.tar.bz2
re3-a0b077574e95e49ad845a6c9dc1af906b17277f9.tar.lz
re3-a0b077574e95e49ad845a6c9dc1af906b17277f9.tar.xz
re3-a0b077574e95e49ad845a6c9dc1af906b17277f9.tar.zst
re3-a0b077574e95e49ad845a6c9dc1af906b17277f9.zip
Diffstat (limited to '')
-rw-r--r--src/skel/win/win.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/skel/win/win.cpp b/src/skel/win/win.cpp
index f05580cd..4e5dccff 100644
--- a/src/skel/win/win.cpp
+++ b/src/skel/win/win.cpp
@@ -2056,7 +2056,13 @@ _WinMain(HINSTANCE instance,
{
GetWindowPlacement(PSGLOBAL(window), &wp);
- if ( wp.showCmd != SW_SHOWMINIMIZED )
+ // Famous transparent menu bug. Also see the fix in Frontend.cpp
+#ifdef FIX_BUGS
+ float ms = (float)CTimer::GetCurrentTimeInCycles() / (float)CTimer::GetCyclesPerMillisecond();
+ if ((1000.0f / 100.0f) < ms && wp.showCmd != SW_SHOWMINIMIZED)
+#else
+ if (wp.showCmd != SW_SHOWMINIMIZED)
+#endif
RsEventHandler(rsFRONTENDIDLE, nil);
if ( !FrontEndMenuManager.m_bMenuActive || FrontEndMenuManager.m_bLoadingSavedGame )