Fixed refresh rate calculation
authorSam Lantinga <slouken@libsdl.org>
Wed, 03 Oct 2012 19:25:08 -0700
changeset 6551 b0679a0d5751
parent 6550 191f00a080ba
child 6552 caa7decef32b
Fixed refresh rate calculation
src/video/x11/SDL_x11modes.c
--- a/src/video/x11/SDL_x11modes.c	Wed Oct 03 19:24:11 2012 -0700
+++ b/src/video/x11/SDL_x11modes.c	Wed Oct 03 19:25:08 2012 -0700
@@ -224,8 +224,7 @@
 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