summaryrefslogtreecommitdiff
path: root/src/i830_modes.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@benzedrine.nwnk.net>2006-07-13 17:20:17 -0400
committerAdam Jackson <ajax@benzedrine.nwnk.net>2006-07-13 17:20:17 -0400
commit22843830ebdd14247aa76d19f89494a56e2ac887 (patch)
tree6d8aea3c2b0424c005dab2466f4624d9eea3f9dd /src/i830_modes.c
parent05bcbadd130524694e11e372d54cb419cea566cc (diff)
Fix a thinko; would only inject the FP native mode if a mode list was already
found, which is never the case when there's no xorg.conf.
Diffstat (limited to 'src/i830_modes.c')
-rw-r--r--src/i830_modes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_modes.c b/src/i830_modes.c
index 90bd0931..bf480a6a 100644
--- a/src/i830_modes.c
+++ b/src/i830_modes.c
@@ -493,7 +493,7 @@ i830GetLVDSModes(ScrnInfoPtr pScrn, char **ppModeName)
/* If the user hasn't specified modes, add the native mode */
if (!count) {
new = i830FPNativeMode(pScrn);
- if (first) {
+ if (new) {
I830xf86SortModes(new, &first, &last);
count = 1;
}