summaryrefslogtreecommitdiff
path: root/driver/xf86-video-wildcatfb/src/wildcatfb_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/xf86-video-wildcatfb/src/wildcatfb_driver.c')
-rw-r--r--driver/xf86-video-wildcatfb/src/wildcatfb_driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/xf86-video-wildcatfb/src/wildcatfb_driver.c b/driver/xf86-video-wildcatfb/src/wildcatfb_driver.c
index f955c9213..de74a92d4 100644
--- a/driver/xf86-video-wildcatfb/src/wildcatfb_driver.c
+++ b/driver/xf86-video-wildcatfb/src/wildcatfb_driver.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wildcatfb_driver.c,v 1.4 2010/07/18 17:49:46 matthieu Exp $ */
+/* $OpenBSD: wildcatfb_driver.c,v 1.5 2010/07/18 20:10:12 matthieu Exp $ */
/*
* Copyright (c) 2009 Miodrag Vallat.
@@ -685,7 +685,7 @@ WildcatFBScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
return FALSE;
fPtr->shadow = xcalloc(1, pScrn->virtualX * pScrn->virtualY *
- pScrn->bitsPerPixel);
+ pScrn->bitsPerPixel/8);
if (!fPtr->shadow) {
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,