summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-03-28 21:29:28 +0100
committerGitHub <noreply@github.com>2020-03-28 21:29:28 +0100
commit7242d8a440027ac47b57a4085833f09d9278bd70 (patch)
tree0036a35c6b8f1ab552b0580ff299e789264a38af
parentaudio16 fixes for review (diff)
parentLimit frontend FPS to 100 (diff)
downloadre3-7242d8a440027ac47b57a4085833f09d9278bd70.tar
re3-7242d8a440027ac47b57a4085833f09d9278bd70.tar.gz
re3-7242d8a440027ac47b57a4085833f09d9278bd70.tar.bz2
re3-7242d8a440027ac47b57a4085833f09d9278bd70.tar.lz
re3-7242d8a440027ac47b57a4085833f09d9278bd70.tar.xz
re3-7242d8a440027ac47b57a4085833f09d9278bd70.tar.zst
re3-7242d8a440027ac47b57a4085833f09d9278bd70.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 )