From d002849b471393db6779e52dc6a54ad210f050a5 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Mon, 26 Dec 2016 06:01:48 +0000 Subject: [PATCH] Change the type of functions touching vsync setting back to int32_t. Since it is serialized to disk, an explicit size type is important. git-svn-id: https://svn.eduke32.com/eduke32@5956 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/sdlayer.c | 4 ++-- polymer/eduke32/build/src/sdlayer12.c | 2 +- polymer/eduke32/build/src/winlayer.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/polymer/eduke32/build/src/sdlayer.c b/polymer/eduke32/build/src/sdlayer.c index 22aa56d70..ec0681c51 100644 --- a/polymer/eduke32/build/src/sdlayer.c +++ b/polymer/eduke32/build/src/sdlayer.c @@ -106,7 +106,7 @@ static uint16_t sysgamma[3][256]; // OpenGL stuff char nogl=0; #endif -static int vsync_renderlayer; +static int32_t vsync_renderlayer; int32_t maxrefreshfreq=0; // last gamma, contrast, brightness @@ -503,7 +503,7 @@ int32_t main(int32_t argc, char *argv[]) #if SDL_MAJOR_VERSION != 1 -int setvsync(int newSync) +int32_t setvsync(int32_t newSync) { if (vsync_renderlayer == newSync) return newSync; diff --git a/polymer/eduke32/build/src/sdlayer12.c b/polymer/eduke32/build/src/sdlayer12.c index 7d841e037..6d6da9079 100644 --- a/polymer/eduke32/build/src/sdlayer12.c +++ b/polymer/eduke32/build/src/sdlayer12.c @@ -55,7 +55,7 @@ HWND win_gethwnd(void) } #endif -int setvsync(int newSync) +int32_t setvsync(int32_t newSync) { if (vsync_renderlayer == newSync) return newSync; diff --git a/polymer/eduke32/build/src/winlayer.c b/polymer/eduke32/build/src/winlayer.c index 0bb5de185..f91b0cb3c 100644 --- a/polymer/eduke32/build/src/winlayer.c +++ b/polymer/eduke32/build/src/winlayer.c @@ -1721,7 +1721,7 @@ int32_t setvideomode(int32_t x, int32_t y, int32_t c, int32_t fs) #define CHECK(w,h) if ((w < maxx) && (h < maxy)) -int setvsync(int newSync) +int32_t setvsync(int32_t newSync) { #ifdef USE_OPENGL if (!glinfo.vsync)