From 3961f708fef4f81916199c6eb440d61f143abea5 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 22 Apr 2020 22:32:24 +0200 Subject: [PATCH] - moved refreshfreq variable to a common place. --- src/common/engine/i_interface.cpp | 1 + src/win32/hardware.cpp | 2 +- src/win32/i_input.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/engine/i_interface.cpp b/src/common/engine/i_interface.cpp index b95563279..7fc82c4cc 100644 --- a/src/common/engine/i_interface.cpp +++ b/src/common/engine/i_interface.cpp @@ -1,3 +1,4 @@ #include "i_interface.h" SystemCallbacks *sysCallbacks; +double refreshfreq; \ No newline at end of file diff --git a/src/win32/hardware.cpp b/src/win32/hardware.cpp index 1da091824..3cadc1ced 100644 --- a/src/win32/hardware.cpp +++ b/src/win32/hardware.cpp @@ -139,7 +139,7 @@ void I_InitGraphics () else #endif #ifdef HAVE_VULKAN - else if (vid_preferbackend == 1) + if (vid_preferbackend == 1) { // first try Vulkan, if that fails OpenGL try diff --git a/src/win32/i_input.cpp b/src/win32/i_input.cpp index c0d896dcb..2a67766bd 100644 --- a/src/win32/i_input.cpp +++ b/src/win32/i_input.cpp @@ -136,7 +136,7 @@ extern bool AppActive; int SessionState = 0; int BlockMouseMove; -double refreshfreq; +extern double refreshfreq; static bool EventHandlerResultForNativeMouse;