summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy C. Reed <reed@glacier.reedmedia.net>2006-12-21 05:53:21 -0600
committerJeremy C. Reed <reed@glacier.reedmedia.net>2006-12-21 05:53:21 -0600
commit579e15946892894f4ee75576855767dae27292d3 (patch)
tree48a013a35a80823a54e860168a14e08137fc6aa7
parentb5d1de955b4bf40edd1ff08fc4d562590a4e1f98 (diff)
"framebuffer size is linebytes * height, not linebytes * height *
depth" Noticed in recent NetBSD CVS commit. Also in OpenBSD's CVS. Okayed by Matthieu. Before my system said: "(II) wsfb(0): Vidmem: 24576k". Now says: "(II) wsfb(0): Vidmem: 1536k"
-rw-r--r--src/wsfb_driver.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wsfb_driver.c b/src/wsfb_driver.c
index d97bf3f..341f4af 100644
--- a/src/wsfb_driver.c
+++ b/src/wsfb_driver.c
@@ -550,8 +550,7 @@ WsfbPreInit(ScrnInfoPtr pScrn, int flags)
pScrn->progClock = TRUE;
pScrn->rgbBits = 8;
pScrn->chipset = "wsfb";
- pScrn->videoRam = fPtr->linebytes * fPtr->info.height
- * fPtr->info.depth;
+ pScrn->videoRam = fPtr->linebytes * fPtr->info.height;
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Vidmem: %dk\n",
pScrn->videoRam/1024);