[PATCH vesa] Use default refresh by default

Stefan Dirsch sndirsch at suse.de
Thu Apr 28 11:56:52 UTC 2016


This seems to be a feature that isn't tested well. Too many VBE 3.0
BIOSes are incorrectly implemented.

Signed-off-by: Stefan Dirsch <sndirsch at suse.de>
---
 src/vesa.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/vesa.c b/src/vesa.c
index 5b9ccb0..e51effe 100644
--- a/src/vesa.c
+++ b/src/vesa.c
@@ -838,9 +838,11 @@ VESAPreInit(ScrnInfoPtr pScrn, int flags)
     /* Use shadow by default */
     pVesa->shadowFB = xf86ReturnOptValBool(pVesa->Options, OPTION_SHADOW_FB,
                                            TRUE);
-
-    if (xf86ReturnOptValBool(pVesa->Options, OPTION_DFLT_REFRESH, FALSE))
-	pVesa->defaultRefresh = TRUE;
+    /*  Use default refresh by default. Too many VBE 3.0
+     *   BIOSes are incorrectly implemented.
+     */
+    pVesa->defaultRefresh = xf86ReturnOptValBool(pVesa->Options,
+                                                 OPTION_DFLT_REFRESH, TRUE);
 
     pVesa->ModeSetClearScreen =
         xf86ReturnOptValBool(pVesa->Options,
-- 
2.6.2



More information about the xorg-devel mailing list