Fix iFPS != 0 assertion, at least when a nonzero rate is returned. (Not sure what LCD displays will report.)

This commit is contained in:
Steve Checkoway
2006-03-20 19:59:11 +00:00
parent a38f90d085
commit bb1d5d4c05
@@ -226,6 +226,7 @@ RString LowLevelWindow_X11::TryVideoMode( const VideoModeParams &p, bool &bNewDe
m_bWasWindowed = true;
}
}
int rate = XRRConfigCurrentRate( pScreenConfig );
XRRFreeScreenConfigInfo( pScreenConfig );
@@ -238,7 +239,7 @@ RString LowLevelWindow_X11::TryVideoMode( const VideoModeParams &p, bool &bNewDe
XResizeWindow( X11Helper::Dpy, X11Helper::Win, p.width, p.height );
CurrentParams = p;
CurrentParams.rate = rate;
return ""; // Success
}