diff options
author | Adam Jackson <ajax@redhat.com> | 2017-02-16 11:18:10 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-02-16 11:18:10 -0500 |
commit | 5ae03dc9f4564de54df6427ed7e6e80e75a4179e (patch) | |
tree | 3c7b5435d823946e7989f9f22603a92de17302c6 | |
parent | e27785a3fbabc9f354c361b5058b0359b6d9b5ae (diff) |
D'oh, fix the previous commit
These limits are against mode->[HV]Total, not Display.
Signed-off-by: Adam Jackson <ajax@redhat.com>
-rw-r--r-- | src/ativalid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ativalid.c b/src/ativalid.c index 612bfe5..0a6d54a 100644 --- a/src/ativalid.c +++ b/src/ativalid.c @@ -62,11 +62,11 @@ ATIValidMode /* CRTC_H_TOTAL is one bit narrower */ maxHValue >>= 1; } - if (pMode->HDisplay > maxHValue) + if (pMode->HTotal > maxHValue) return MODE_BAD_HVALUE; maxVValue = MaxBits(CRTC_V_TOTAL) + 1; - if (pMode->VDisplay > maxVValue) + if (pMode->VTotal > maxVValue) return MODE_BAD_VVALUE; } |