From 42cb6b2193ce4b08e701fe4266c1b423fe81d800 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 3 Oct 2012 19:25:08 -0700 Subject: [PATCH] Fixed refresh rate calculation --- src/video/x11/SDL_x11modes.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/video/x11/SDL_x11modes.c b/src/video/x11/SDL_x11modes.c index 6865fa968..e146c4a44 100644 --- a/src/video/x11/SDL_x11modes.c +++ b/src/video/x11/SDL_x11modes.c @@ -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