diff --git a/src/video/x11/SDL_x11modes.c b/src/video/x11/SDL_x11modes.c index da58c19fd8..85701886ad 100644 --- a/src/video/x11/SDL_x11modes.c +++ b/src/video/x11/SDL_x11modes.c @@ -195,7 +195,7 @@ static SDL_bool CheckXRandR(Display *display, int *major, int *minor) static float CalculateXRandRRefreshRate(const XRRModeInfo *info) { if (info->hTotal && info->vTotal) { - return ((100 * info->dotClock) / (info->hTotal * info->vTotal)) / 100.0f; + return ((100 * (Sint64)info->dotClock) / (info->hTotal * info->vTotal)) / 100.0f; } return 0.0f; }