336a7e768b
- xorg-x11-server-1.1.1-offscreen-pixmaps.patch: Fix a crash when activating GLX_EXT_texture_from_pixmap without XAA. - xserver-1.3.0-randr12-config-hack.patch: If a Modes line is given in the Screen section, and no PreferredMode option is given for a RANDR 1.2 monitor, use the first mode in the Modes line as the preferred mode. Fixes anaconda ugliness on monitors larger than 800x600. (#238991)
37 lines
1.0 KiB
Diff
37 lines
1.0 KiB
Diff
--- xorg-server-1.3.0.0/hw/xfree86/modes/xf86Crtc.c.jx 2007-04-16 12:53:50.000000000 -0400
|
|
+++ xorg-server-1.3.0.0/hw/xfree86/modes/xf86Crtc.c 2007-05-02 14:03:28.000000000 -0400
|
|
@@ -1202,6 +1202,23 @@
|
|
return output;
|
|
}
|
|
|
|
+static char *
|
|
+preferredMode(ScrnInfoPtr pScrn, xf86OutputPtr output)
|
|
+{
|
|
+ char *preferred_mode = NULL;
|
|
+
|
|
+ /* Check for a configured preference for a particular mode */
|
|
+ preferred_mode = xf86GetOptValString (output->options,
|
|
+ OPTION_PREFERRED_MODE);
|
|
+ if (preferred_mode)
|
|
+ return preferred_mode;
|
|
+
|
|
+ if (pScrn->display->modes && *pScrn->display->modes)
|
|
+ preferred_mode = *pScrn->display->modes;
|
|
+
|
|
+ return preferred_mode;
|
|
+}
|
|
+
|
|
#define DEBUG_REPROBE 1
|
|
|
|
void
|
|
@@ -1377,8 +1394,7 @@
|
|
output->probed_modes = xf86SortModes (output->probed_modes);
|
|
|
|
/* Check for a configured preference for a particular mode */
|
|
- preferred_mode = xf86GetOptValString (output->options,
|
|
- OPTION_PREFERRED_MODE);
|
|
+ preferred_mode = preferredMode(scrn, output);
|
|
|
|
if (preferred_mode)
|
|
{
|