mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
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
This commit is contained in:
parent
7380202636
commit
d002849b47
3 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue