Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed refresh rate calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 4, 2012
1 parent e54c994 commit 42cb6b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/video/x11/SDL_x11modes.c
Expand Up @@ -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
Expand Down

0 comments on commit 42cb6b2

Please sign in to comment.