Blame SOURCES/vesa-2.3.0-24bpp-sucks.patch

2fabc5
diff -up xf86-video-vesa-2.3.0/src/vesa.c.jx xf86-video-vesa-2.3.0/src/vesa.c
2fabc5
--- xf86-video-vesa-2.3.0/src/vesa.c.jx	2010-01-04 14:16:31.000000000 -0500
2fabc5
+++ xf86-video-vesa-2.3.0/src/vesa.c	2010-10-11 15:29:52.000000000 -0400
2fabc5
@@ -651,10 +651,12 @@ VESAPreInit(ScrnInfoPtr pScrn, int flags
2fabc5
 				    V_MODETYPE_VBE);
2fabc5
 
2fabc5
     /* Preferred order for default depth selection. */
2fabc5
-    if (depths & V_DEPTH_24)
2fabc5
+    if ((depths & V_DEPTH_24) && (flags24 & Support32bppFb))
2fabc5
 	defaultDepth = 24;
2fabc5
     else if (depths & V_DEPTH_16)
2fabc5
 	defaultDepth = 16;
2fabc5
+    else if (depths & V_DEPTH_24)
2fabc5
+	defaultDepth = 24;
2fabc5
     else if (depths & V_DEPTH_15)
2fabc5
 	defaultDepth = 15;
2fabc5
     else if (depths & V_DEPTH_8)