diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2009-10-19 20:01:31 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2009-10-19 20:01:31 +0000 |
commit | 5b35043e17e77bd797b357b50c7770a50296708e (patch) | |
tree | 63af7c21bd3e45eed555c9a1a9e0e10269f27921 | |
parent | 55e7c8f57174fdeb53cb7966ebeea39c4fd57284 (diff) |
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.
-rw-r--r-- | driver/xf86-video-wsfb/src/wsfb_driver.c | 5 |
1 files 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) { |