equal
deleted
inserted
replaced
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) |