diff options
author | Jon Smirl <[email protected]> | 2005-05-05 05:50:19 +0000 |
---|---|---|
committer | Jon Smirl <[email protected]> | 2005-05-05 05:50:19 +0000 |
commit | fd4f7064e24654c89248be6d76f39c7baf22fce4 (patch) | |
tree | 867070b74ec7d0290bddc7f4d3582fc4bf81f73d /src/mesa/drivers/dri/common | |
parent | db46e2a7ddc91ee1322897d68a2ae97912f28ed3 (diff) |
Fix up origin in dri/fb driver
Calculated fbBPP
Diffstat (limited to 'src/mesa/drivers/dri/common')
-rw-r--r-- | src/mesa/drivers/dri/common/dri_util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index a059241a058..0c07cc0c148 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -1290,6 +1290,7 @@ __driUtilCreateNewScreen(__DRInativeDisplay *dpy, int scrn, __DRIscreen *psc, psp->fbHeight = frame_buffer->height; psp->devPrivSize = frame_buffer->dev_priv_size; psp->pDevPriv = frame_buffer->dev_priv; + psp->fbBPP = psp->fbStride * 8 / frame_buffer->width; psp->fd = fd; |