Commit 14503fbb authored by Zhigang Gong's avatar Zhigang Gong

glamor: Fix the coords calculation in glamor_fill.

glamor_fill is only called from internal functions
glamor_fillspancs and glamor_polyfillrect. And both functions
already add the offset to the coords, so the coords are already
relative value, we can't add the offset once again.
Signed-off-by: default avatarZhigang Gong <zhigang.gong@linux.intel.com>
parent 1dca5d7b
......@@ -41,14 +41,12 @@ glamor_fill(DrawablePtr drawable,
int height)
{
PixmapPtr dst_pixmap = glamor_get_drawable_pixmap(drawable);
int x_off, y_off;
glamor_get_drawable_deltas(drawable, dst_pixmap, &x_off, &y_off);
switch (gc->fillStyle) {
case FillSolid:
if (!glamor_solid(dst_pixmap,
x + x_off,
y + y_off,
x,
y,
width,
height,
gc->alu,
......@@ -60,24 +58,24 @@ glamor_fill(DrawablePtr drawable,
case FillOpaqueStippled:
if (!glamor_stipple(dst_pixmap,
gc->stipple,
x+ x_off,
y + y_off,
x,
y,
width,
height,
gc->alu,
gc->planemask,
gc->fgPixel,
gc->bgPixel,
gc->patOrg.x + x_off,
gc->patOrg.y + y_off))
gc->patOrg.x,
gc->patOrg.y))
goto fail;
return;
break;
case FillTiled:
if (!glamor_tile(dst_pixmap,
gc->tile.pixmap,
x + x_off,
y + y_off,
x,
y,
width,
height,
gc->alu,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment