From 8dce9c5affcbe1ea610d7d919f2addc4bf9e0bff Mon Sep 17 00:00:00 2001 From: Clownacy Date: Tue, 3 Sep 2019 00:43:05 +0100 Subject: [PATCH] Add some missing code to the main function This code was previously in WindowProc, which was replaced. --- src/Main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Main.cpp b/src/Main.cpp index 890a4bc9..14c5c3f3 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -300,6 +300,12 @@ int main(int argc, char *argv[]) SDL_EventState(SDL_DROPFILE, SDL_ENABLE); #endif + if (CheckFileExists("fps")) + bFps = TRUE; + + if (!bFullscreen) + LoadWindowRect(hWnd, "window.rect", FALSE); + // Set rects RECT rcLoading = {0, 0, 64, 8}; RECT rcFull = {0, 0, 0, 0};