summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/i830_display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i830_display.c b/src/i830_display.c
index febcf5a4..f8335775 100644
--- a/src/i830_display.c
+++ b/src/i830_display.c
@@ -946,8 +946,8 @@ i830PipeSetBase(xf86CrtcPtr crtc, int x, int y)
int dsptileoff = (plane == 0 ? DSPATILEOFF : DSPBTILEOFF);
int dspstride = (plane == 0) ? DSPASTRIDE : DSPBSTRIDE;
- Offset = ((y * scrn->displayWidth + x) * intel->cpp);
- Stride = scrn->displayWidth * intel->cpp;
+ Offset = y * intel->front_pitch + x * intel->cpp;
+ Stride = intel->front_pitch;
if (intel->front_buffer == NULL) {
/* During startup we may be called as part of monitor detection while
* there is no memory allocation done, so just supply a dummy base