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