diff options
author | John Fredriksson <john.xj.fredriksson@stericsson.com> | 2011-10-12 16:50:07 +0200 |
---|---|---|
committer | John Fredriksson <john.xj.fredriksson@stericsson.com> | 2011-10-14 19:44:20 +0200 |
commit | 30f85bea56ca49c9b1b90f6c7c3663a99a64ec7a (patch) | |
tree | e49304784af55f68eb3427637e39eacbdba6ce38 /src/mali_exa.c | |
parent | 53cd7f5e10c66ccd232b8c96d286e456cccca25f (diff) |
Correct y coordinate in destination buffers.
Don't use framebuffer yoffset for calculating destination
y-coordinates.
Diffstat (limited to 'src/mali_exa.c')
-rw-r--r-- | src/mali_exa.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mali_exa.c b/src/mali_exa.c index b54b344..638f3a5 100644 --- a/src/mali_exa.c +++ b/src/mali_exa.c @@ -117,11 +117,11 @@ static void maliSolid( PixmapPtr pPixmap, int x1, int y1, int x2, int y2 ) bltreq.dst_img.fmt = maliGetColorFormat(pPixmap->drawable.bitsPerPixel); bltreq.dst_img.pitch = exaGetPixmapPitch(pPixmap); bltreq.dst_rect.x = x1; - bltreq.dst_rect.y = y1 + fPtr->fb_lcd_var.yoffset; + bltreq.dst_rect.y = y1; bltreq.dst_rect.width = x2 - x1; bltreq.dst_rect.height = y2 - y1; bltreq.dst_clip_rect.x = x1; - bltreq.dst_clip_rect.y = y1 + fPtr->fb_lcd_var.yoffset; + bltreq.dst_clip_rect.y = y1; bltreq.dst_clip_rect.width = x2 - x1; bltreq.dst_clip_rect.height = y2 - y1; @@ -227,11 +227,11 @@ static void maliCopy( PixmapPtr pDstPixmap, int srcX, int srcY, int dstX, int ds bltreq.src_rect.width = width; bltreq.src_rect.height = height; bltreq.dst_rect.x = dstX; - bltreq.dst_rect.y = dstY + fPtr->fb_lcd_var.yoffset; + bltreq.dst_rect.y = dstY; bltreq.dst_rect.width = width; bltreq.dst_rect.height = height; bltreq.dst_clip_rect.x = dstX; - bltreq.dst_clip_rect.y = dstY + fPtr->fb_lcd_var.yoffset; + bltreq.dst_clip_rect.y = dstY; bltreq.dst_clip_rect.width = width; bltreq.dst_clip_rect.height = height; |