summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2006-12-17 20:08:07 +1100
committerDave Airlie <airlied@linux.ie>2006-12-17 20:08:07 +1100
commit41cd50487bc85708a3f791dfa70bf85223d91a65 (patch)
tree041541500069d67b64cb37a0bbf6a2b0acb58f9a /src
parent555e0f988c571aa47bc62ec6d9612a71f1a1f59b (diff)
add displayWidth set
Diffstat (limited to 'src')
-rw-r--r--src/radeon_driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index b8810b4b..942d2ad6 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -3238,6 +3238,8 @@ _X_EXPORT Bool RADEONPreInit(ScrnInfoPtr pScrn, int flags)
goto fail;
}
+ pScrn->displayWidth = (pScrn->virtualX + 63) & ~63;
+
/* Get ScreenInit function */
if (!xf86LoadSubModule(pScrn, "fb")) return FALSE;