summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@koto.keithp.com>2007-10-22 13:38:16 -0700
committerKeith Packard <keithp@koto.keithp.com>2007-10-22 13:38:16 -0700
commit29e0e180729a4f0cc020985a4de4c8bc4b9c7f5f (patch)
treeb5266a48251c9892a4852f18411156ffb536138b
parentfbe19c66c36acfb484809111cf02579a3baf2f0f (diff)
Leave hardware-specified preferred modes alone when user preference exists.
Instead of removing the preference bit marking the hardware declared mode preference, leave it in place and just move the user preferred mode to the front of the list while marking it with the USERPREF bit which will cause it to be selected by the initial mode selection code.
-rw-r--r--hw/xfree86/modes/xf86Crtc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
index 0a48d5bd3..bb416fddc 100644
--- a/hw/xfree86/modes/xf86Crtc.c
+++ b/hw/xfree86/modes/xf86Crtc.c
@@ -1417,9 +1417,8 @@ xf86ProbeOutputModes (ScrnInfoPtr scrn, int maxX, int maxY)
1417 output->probed_modes = mode; 1417 output->probed_modes = mode;
1418 } 1418 }
1419 mode->type |= (M_T_PREFERRED|M_T_USERPREF); 1419 mode->type |= (M_T_PREFERRED|M_T_USERPREF);
1420 break;
1420 } 1421 }
1421 else
1422 mode->type &= ~M_T_PREFERRED;
1423 } 1422 }
1424 } 1423 }
1425 1424