diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2020-10-18 18:16:37 +0200 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2020-10-18 18:16:37 +0200 |
commit | a6aa782d6d5fa9a2165dafec5794a2e2cfbc653f (patch) | |
tree | dea344ffa5b7073b94b94a35dee13519fbc04b82 /src/skel/glfw | |
parent | Upload to bintray when creating tags (diff) | |
download | re3-a6aa782d6d5fa9a2165dafec5794a2e2cfbc653f.tar re3-a6aa782d6d5fa9a2165dafec5794a2e2cfbc653f.tar.gz re3-a6aa782d6d5fa9a2165dafec5794a2e2cfbc653f.tar.bz2 re3-a6aa782d6d5fa9a2165dafec5794a2e2cfbc653f.tar.lz re3-a6aa782d6d5fa9a2165dafec5794a2e2cfbc653f.tar.xz re3-a6aa782d6d5fa9a2165dafec5794a2e2cfbc653f.tar.zst re3-a6aa782d6d5fa9a2165dafec5794a2e2cfbc653f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/skel/glfw/glfw.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/skel/glfw/glfw.cpp b/src/skel/glfw/glfw.cpp index cdb73992..4d41a900 100644 --- a/src/skel/glfw/glfw.cpp +++ b/src/skel/glfw/glfw.cpp @@ -418,7 +418,7 @@ psInitialize(void) } else if ( verInfo.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS ) { - if ( verInfo.dwMajorVersion > 4 || verInfo.dwMajorVersion == 4 && verInfo.dwMinorVersion == 1 ) + if ( verInfo.dwMajorVersion > 4 || verInfo.dwMajorVersion == 4 && verInfo.dwMinorVersion != 0 ) { debug("Operating System is Win98\n"); _dwOperatingSystemVersion = OS_WIN98; @@ -1220,14 +1220,17 @@ void resizeCB(GLFWwindow* window, int width, int height) { * memory things don't work. */ /* redraw window */ - if (RwInitialised && (gGameState == GS_PLAYING_GAME #ifndef MASTER - || gGameState == GS_ANIMVIEWER -#endif - )) + if (RwInitialised && (gGameState == GS_PLAYING_GAME || gGameState == GS_ANIMVIEWER)) { - RsEventHandler((gGameState == GS_PLAYING_GAME ? rsIDLE : rsANIMVIEWER), (void*)TRUE); + RsEventHandler((gGameState == GS_PLAYING_GAME ? rsIDLE : rsANIMVIEWER), (void *)TRUE); } +#else + if (RwInitialised && gGameState == GS_PLAYING_GAME) + { + RsEventHandler(rsIDLE, (void *)TRUE); + } +#endif if (RwInitialised && height > 0 && width > 0) { RwRect r; |