Make PreferredMode option in config file override EDID mode preferences.
When the PreferredMode option is selected in the config file, remove the M_T_PREFERRED bit from all other preferred modes to force the config file mode to be selected.
This commit is contained in:
@@ -1414,8 +1414,9 @@ xf86ProbeOutputModes (ScrnInfoPtr scrn, int maxX, int maxY)
|
|||||||
output->probed_modes = mode;
|
output->probed_modes = mode;
|
||||||
}
|
}
|
||||||
mode->type |= M_T_PREFERRED;
|
mode->type |= M_T_PREFERRED;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
mode->type &= ~M_T_PREFERRED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user