diff --git a/source/build/include/baselayer.h b/source/build/include/baselayer.h index c4690d719..12fc727a6 100644 --- a/source/build/include/baselayer.h +++ b/source/build/include/baselayer.h @@ -24,7 +24,8 @@ EXTERN_CVAR(Bool, r_usenewaspect) extern int32_t newaspect_enable; extern int32_t r_fpgrouscan; extern int32_t setaspect_new_use_dimen; -extern int32_t xres, yres, bpp, refreshfreq; +extern int32_t xres, yres, bpp; +extern double refreshfreq; int32_t videoCheckMode(int32_t *x, int32_t *y, int32_t c, int32_t fs, int32_t forced); int32_t videoSetMode(int32_t x, int32_t y, int32_t c, int32_t fs); diff --git a/source/platform/posix/cocoa/i_main.mm b/source/platform/posix/cocoa/i_main.mm index a6d7c15d1..7114d34ce 100644 --- a/source/platform/posix/cocoa/i_main.mm +++ b/source/platform/posix/cocoa/i_main.mm @@ -139,6 +139,8 @@ void I_DetectOS() FArgs* Args; // command line arguments +double refreshfreq; +bool batchrun; namespace { diff --git a/source/platform/posix/sdl/sdlglvideo.cpp b/source/platform/posix/sdl/sdlglvideo.cpp index 48dd0da35..6be854c96 100644 --- a/source/platform/posix/sdl/sdlglvideo.cpp +++ b/source/platform/posix/sdl/sdlglvideo.cpp @@ -111,7 +111,7 @@ CCMD(vid_list_sdl_render_drivers) } } -int refreshfreq; +double refreshfreq; // PRIVATE DATA DEFINITIONS ------------------------------------------------ diff --git a/source/platform/win32/i_input.cpp b/source/platform/win32/i_input.cpp index c3e7d65d8..1711b58dc 100644 --- a/source/platform/win32/i_input.cpp +++ b/source/platform/win32/i_input.cpp @@ -136,7 +136,7 @@ extern bool AppActive; int SessionState = 0; int BlockMouseMove; -int refreshfreq; +double refreshfreq; static bool EventHandlerResultForNativeMouse;