summaryrefslogtreecommitdiffstats
path: root/src/skel/win/win.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-03-28 21:42:11 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-03-28 21:42:11 +0100
commit92edf92570a7d9b092370d8dc499a67997fa8137 (patch)
tree1409ab9d00d398430755e2b874cdacfba0490c52 /src/skel/win/win.cpp
parentfixes (diff)
parentMerge pull request #364 from erorcun/erorcun (diff)
downloadre3-92edf92570a7d9b092370d8dc499a67997fa8137.tar
re3-92edf92570a7d9b092370d8dc499a67997fa8137.tar.gz
re3-92edf92570a7d9b092370d8dc499a67997fa8137.tar.bz2
re3-92edf92570a7d9b092370d8dc499a67997fa8137.tar.lz
re3-92edf92570a7d9b092370d8dc499a67997fa8137.tar.xz
re3-92edf92570a7d9b092370d8dc499a67997fa8137.tar.zst
re3-92edf92570a7d9b092370d8dc499a67997fa8137.zip
Diffstat (limited to 'src/skel/win/win.cpp')
-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 )