uxa: Patterns are acquired at 0,0
Set the correct offset for the gradients patterns after rendering to a local Picture. Fixes cairo/test/huge-radial and friends Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
89f43f69a9
commit
61835701fd
|
|
@ -838,8 +838,8 @@ uxa_acquire_picture(ScreenPtr screen,
|
|||
*out_x = x + src->pDrawable->x;
|
||||
*out_y = y + src->pDrawable->y;
|
||||
} else {
|
||||
*out_x = x;
|
||||
*out_y = y;
|
||||
*out_x = 0;
|
||||
*out_y = 0;
|
||||
}
|
||||
return src;
|
||||
}
|
||||
|
|
@ -860,8 +860,8 @@ uxa_acquire_picture(ScreenPtr screen,
|
|||
return dst;
|
||||
}
|
||||
|
||||
*out_x = x;
|
||||
*out_y = y;
|
||||
*out_x = 0;
|
||||
*out_y = 0;
|
||||
return uxa_acquire_pattern(screen, src,
|
||||
format, x, y, width, height);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue