[PATCH xf86-video-wsfb 3/4] Correctly handle off-screen memory in 1bpp and 4bpp modes.

Matthieu Herrb matthieu.herrb at laas.fr
Sun Aug 29 05:55:06 PDT 2010


From: Miod Vallat <miod at online.fr>

Signed-off-by: Matthieu Herrb <matthieu.herrb at laas.fr>
---
 src/wsfb_driver.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/wsfb_driver.c b/src/wsfb_driver.c
index bd8b38d..d4ad995 100644
--- a/src/wsfb_driver.c
+++ b/src/wsfb_driver.c
@@ -819,7 +819,7 @@ WsfbScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
 		ret = xf1bppScreenInit(pScreen, fPtr->fbstart,
 				       pScrn->virtualX, pScrn->virtualY,
 				       pScrn->xDpi, pScrn->yDpi,
-				       pScrn->displayWidth);
+				       fPtr->linebytes * 8);
 		break;
 #endif
 	case 4:
@@ -827,7 +827,7 @@ WsfbScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
 		ret = xf4bppScreenInit(pScreen, fPtr->fbstart,
 				       pScrn->virtualX, pScrn->virtualY,
 				       pScrn->xDpi, pScrn->yDpi,
-				       pScrn->displayWidth);
+				       fPtr->linebytes * 2);
 		break;
 #endif
 	case 8:
-- 
1.7.0.5



More information about the xorg-devel mailing list