Fixed refresh rate calculation

This commit is contained in:
Sam Lantinga
2012-10-03 19:25:08 -07:00
parent 5afe2b45e4
commit 90d4ddcac4

View File

@@ -224,8 +224,7 @@ static int
CalculateXRandRRefreshRate(const XRRModeInfo *info)
{
return (info->hTotal
&& info->vTotal) ? (1000 * info->dotClock / (info->hTotal *
info->vTotal)) : 0;
&& info->vTotal) ? (info->dotClock / (info->hTotal * info->vTotal)) : 0;
}
static SDL_bool