diff options
author | Matthieu Herrb <matthieu.herrb@laas.fr> | 2010-08-29 14:05:08 +0200 |
---|---|---|
committer | Matthieu Herrb <matthieu.herrb@laas.fr> | 2010-08-29 14:08:28 +0200 |
commit | c6878a3e51a408269a70d73f9badd9da9b1f8fe4 (patch) | |
tree | 89e00645eeeed9323534fbda68931bac530a39c3 | |
parent | 9cfd9c25098604924dfddd111c54dafb059794c1 (diff) |
Fix allocation size of th shadow framebuffer.Use byes, not bits.
Since the shadowfb is only used for bitsPerPixel >= 8, bitsPerPixel/8
is always the correct amount of bytes.
Acked-by: Miod Vallat <miod@online.fr>
Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr>
-rw-r--r-- | src/wsfb_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wsfb_driver.c b/src/wsfb_driver.c index c4e48a7..bd8b38d 100644 --- a/src/wsfb_driver.c +++ b/src/wsfb_driver.c @@ -804,7 +804,7 @@ WsfbScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) if (fPtr->shadowFB) { fPtr->shadow = xcalloc(1, pScrn->virtualX * pScrn->virtualY * - pScrn->bitsPerPixel); + pScrn->bitsPerPixel/8); if (!fPtr->shadow) { xf86DrvMsg(pScrn->scrnIndex, X_ERROR, |