Fixed refresh rate calculation
authorSam Lantinga <slouken@libsdl.org>
Wed, 03 Oct 2012 19:25:08 -0700
changeset 6551b0679a0d5751
parent 6550 191f00a080ba
child 6552 caa7decef32b
Fixed refresh rate calculation
src/video/x11/SDL_x11modes.c
     1.1 --- a/src/video/x11/SDL_x11modes.c	Wed Oct 03 19:24:11 2012 -0700
     1.2 +++ b/src/video/x11/SDL_x11modes.c	Wed Oct 03 19:25:08 2012 -0700
     1.3 @@ -224,8 +224,7 @@
     1.4  CalculateXRandRRefreshRate(const XRRModeInfo *info)
     1.5  {
     1.6      return (info->hTotal
     1.7 -            && info->vTotal) ? (1000 * info->dotClock / (info->hTotal *
     1.8 -                                                         info->vTotal)) : 0;
     1.9 +            && info->vTotal) ? (info->dotClock / (info->hTotal * info->vTotal)) : 0;
    1.10  }
    1.11  
    1.12  static SDL_bool