src/video/x11/SDL_x11modes.c
changeset 6551 b0679a0d5751
parent 6550 191f00a080ba
child 6553 2f03111a2105
equal deleted inserted replaced
6550:191f00a080ba 6551:b0679a0d5751
   222 
   222 
   223 static int
   223 static int
   224 CalculateXRandRRefreshRate(const XRRModeInfo *info)
   224 CalculateXRandRRefreshRate(const XRRModeInfo *info)
   225 {
   225 {
   226     return (info->hTotal
   226     return (info->hTotal
   227             && info->vTotal) ? (1000 * info->dotClock / (info->hTotal *
   227             && info->vTotal) ? (info->dotClock / (info->hTotal * info->vTotal)) : 0;
   228                                                          info->vTotal)) : 0;
       
   229 }
   228 }
   230 
   229 
   231 static SDL_bool
   230 static SDL_bool
   232 SetXRandRModeInfo(Display *display, XRRScreenResources *res, XRROutputInfo *output_info,
   231 SetXRandRModeInfo(Display *display, XRRScreenResources *res, XRROutputInfo *output_info,
   233                   RRMode modeID, SDL_DisplayMode *mode)
   232                   RRMode modeID, SDL_DisplayMode *mode)