From a97527f41253c530d061c05667c0d1ea79e91eb8 Mon Sep 17 00:00:00 2001 From: matthieu Date: Mon, 19 Oct 2009 20:01:30 +0000 Subject: [PATCH] pass the real framebuffer depth to xf86SetDepthBpp() instead of letting it guess. This lets xf86-video-wsfb on TGA framebuffers on alpha whithout setting weights and fbpp explicitely. --- driver/xf86-video-wsfb/src/wsfb_driver.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/driver/xf86-video-wsfb/src/wsfb_driver.c b/driver/xf86-video-wsfb/src/wsfb_driver.c index cfc685fbc..d01e42d11 100644 --- a/driver/xf86-video-wsfb/src/wsfb_driver.c +++ b/driver/xf86-video-wsfb/src/wsfb_driver.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsfb_driver.c,v 1.17 2009/09/22 22:00:54 matthieu Exp $ */ +/* $OpenBSD: wsfb_driver.c,v 1.18 2009/10/19 20:01:30 matthieu Exp $ */ /* * Copyright (c) 2001 Matthieu Herrb * All rights reserved. @@ -505,7 +505,8 @@ WsfbPreInit(ScrnInfoPtr pScrn, int flags) if (flags24 & Support24bppFb) flags24 |= SupportConvert32to24 | PreferConvert32to24; - if (!xf86SetDepthBpp(pScrn, defaultDepth, 0, 0, flags24)) + if (!xf86SetDepthBpp(pScrn, defaultDepth, 0, + fPtr->info.depth, flags24)) return FALSE; if (wstype == WSDISPLAY_TYPE_PCIVGA) {