Skip to content

Instantly share code, notes, and snippets.

@sumikawa
Created January 29, 2017 08:28
Show Gist options
  • Save sumikawa/78f01a367671f7390deee463563d4345 to your computer and use it in GitHub Desktop.
Save sumikawa/78f01a367671f7390deee463563d4345 to your computer and use it in GitHub Desktop.
--- xf86Config.c.orig Sat Apr 3 01:09:48 1999
+++ xf86Config.c Sat Apr 3 01:10:57 1999
@@ -3464,7 +3464,7 @@
driver->clocks = 2;
}
- if ((p->Clock / 1000) > (driver->maxClock / 1000))
+ if (0)
clock_too_high = TRUE;
else
{
@@ -3529,7 +3529,7 @@
i = xf86GetNearestClock(driver, p->Clock*j);
if (flags & LOOKUP_BEST_REFRESH)
{
- if ( ((driver->clock[i]/j) / 1000) > (driver->maxClock / 1000) )
+ if ( 0 )
clock_too_high = TRUE;
else
{
@@ -3557,7 +3557,7 @@
Gap = abs( p->Clock - (driver->clock[i]/j) );
if (Gap < Minimum_Gap)
{
- if ( ((driver->clock[i]/j) / 1000) > (driver->maxClock / 1000) )
+ if ( 0 )
clock_too_high = TRUE;
else
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment