summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deucher <alex@t41p.hsd1.va.comcast.net>2007-06-25 18:20:54 -0400
committerAlex Deucher <alex@t41p.hsd1.va.comcast.net>2007-06-25 18:20:54 -0400
commit6a3599d6155d073a3116c4b13bdf04b44bb9e087 (patch)
tree370880a0529fa31160263754c3dd570bff6318ff
parent771c37fcac8104b894120cc3fc0154b31b0318d1 (diff)
RADEON: make sure we set the stride properly
-rw-r--r--src/radeon_driver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index bee23f0..ea235c1 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -2540,6 +2540,7 @@ RADEONCRTCResize(ScrnInfoPtr scrn, int width, int height)
{
scrn->virtualX = width;
scrn->virtualY = height;
+ RADEONSetPitch(scrn);
return TRUE;
}
@@ -2791,7 +2792,7 @@ _X_EXPORT Bool RADEONPreInit(ScrnInfoPtr pScrn, int flags)
ErrorF("after xf86InitialConfiguration\n");
- pScrn->displayWidth = (pScrn->virtualX + 63) & ~63;
+ RADEONSetPitch(pScrn);
/* Set display resolution */
xf86SetDpi(pScrn, 0, 0);