mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-21 11:21:52 +00:00
Unbreak SDL 1.2 build.
This commit is contained in:
parent
4d9d555d8e
commit
88244bd4a4
1 changed files with 5 additions and 0 deletions
|
@ -768,6 +768,7 @@ qboolean GLimp_VsyncEnabled(void)
|
|||
*/
|
||||
int GLimp_GetRefreshRate(void)
|
||||
{
|
||||
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
||||
int i;
|
||||
int refresh = 0;
|
||||
SDL_DisplayMode mode;
|
||||
|
@ -779,6 +780,10 @@ int GLimp_GetRefreshRate(void)
|
|||
}
|
||||
|
||||
return refresh;
|
||||
#else
|
||||
// Asume 60hz.
|
||||
return 60
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue