Fixing the "xrandr" refresh rate per e-mail from John Tsiombikas dated 12/19/11 at 7:14 AM

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@962 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
fayjf 2011-12-20 03:30:00 +00:00
parent 4007f4ba93
commit d8b86185c7

View File

@ -106,10 +106,6 @@ static int xrandr_resize(int xsz, int ysz, int rate, int just_checking)
break; /* no matching resolution */ break; /* no matching resolution */
#if ( RANDR_MAJOR >= 1 ) || ( ( RANDR_MAJOR == 1 ) && ( RANDR_MINOR >= 1 ) ) #if ( RANDR_MAJOR >= 1 ) || ( ( RANDR_MAJOR == 1 ) && ( RANDR_MINOR >= 1 ) )
if(rate <= 0) {
fgState.GameModeRefresh = XRRConfigCurrentRate(xrr_config);
}
if(use_rate) { if(use_rate) {
rate = fgState.GameModeRefresh; rate = fgState.GameModeRefresh;