summaryrefslogtreecommitdiffstats
path: root/src/skel
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-03-28 21:28:36 +0100
committereray orçunus <erayorcunus@gmail.com>2020-03-28 21:28:36 +0100
commit39c9a0582700ab7242272952edbe211a4dd13935 (patch)
tree538a781c3bb918c5738eb18a4eda6678766f8c6b /src/skel
parentMerge pull request #363 from erorcun/erorcun (diff)
downloadre3-39c9a0582700ab7242272952edbe211a4dd13935.tar
re3-39c9a0582700ab7242272952edbe211a4dd13935.tar.gz
re3-39c9a0582700ab7242272952edbe211a4dd13935.tar.bz2
re3-39c9a0582700ab7242272952edbe211a4dd13935.tar.lz
re3-39c9a0582700ab7242272952edbe211a4dd13935.tar.xz
re3-39c9a0582700ab7242272952edbe211a4dd13935.tar.zst
re3-39c9a0582700ab7242272952edbe211a4dd13935.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 )