summaryrefslogtreecommitdiff
path: root/src/radeon_display.c
diff options
context:
space:
mode:
authorMatthias Hopf <mhopf@suse.de>2007-04-18 17:32:52 +0200
committerMatthias Hopf <mhopf@suse.de>2007-04-18 17:32:52 +0200
commit0abce69f0d826a7ca1a41d963cd4730b6e01c145 (patch)
tree400260682a46963544c185715c77c36cbdc1f002 /src/radeon_display.c
parentaea801cf9a5ce519a53d6fffd9a3a2e526ec79ea (diff)
Fix inconsistent use of Mode lists.
Some scans used to only check every second entry, some stopped at the entry before the last entry. Bugzilla #10620 (1), original patch by Lisa Wu @ATI
Diffstat (limited to 'src/radeon_display.c')
-rw-r--r--src/radeon_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radeon_display.c b/src/radeon_display.c
index d661c17b..ac056483 100644
--- a/src/radeon_display.c
+++ b/src/radeon_display.c
@@ -776,7 +776,7 @@ static void RADEONUpdatePanelSize(ScrnInfoPtr pScrn)
for (j = 0; j < 8; j++) {
if ((info->PanelXRes < ddc->timings2[j].hsize) &&
(info->PanelYRes < ddc->timings2[j].vsize)) {
- for (p = pScrn->monitor->Modes; p && p->next; p = p->next->next) {
+ for (p = pScrn->monitor->Modes; p; p = p->next) {
if ((ddc->timings2[j].hsize == p->HDisplay) &&
(ddc->timings2[j].vsize == p->VDisplay)) {
float refresh =