[PATCH driver/vesa] Make shadowFB really the default

Egbert Eich eich at freedesktop.org
Wed Jul 31 02:36:37 PDT 2013


Make the implementation follow what the comment already
suggests.

Signed-off-by: Egbert Eich <eich at freedesktop.org>
---
 src/vesa.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/vesa.c b/src/vesa.c
index b73d104..0412050 100644
--- a/src/vesa.c
+++ b/src/vesa.c
@@ -838,8 +838,9 @@ VESAPreInit(ScrnInfoPtr pScrn, int flags)
     xf86ProcessOptions(pScrn->scrnIndex, pScrn->options, pVesa->Options);
 
     /* Use shadow by default */
-    if (xf86ReturnOptValBool(pVesa->Options, OPTION_SHADOW_FB, TRUE)) 
-	pVesa->shadowFB = TRUE;
+    pVesa->shadowFB = TRUE;
+    xf86GetOptValBool(pVesa->Options, OPTION_SHADOW_FB,
+		      &pVesa->shadowFB);
 
     if (xf86ReturnOptValBool(pVesa->Options, OPTION_DFLT_REFRESH, FALSE))
 	pVesa->defaultRefresh = TRUE;
-- 
1.8.1.4



More information about the xorg-devel mailing list