Restore ABI by reintroducing the "is_src" paramter to image_from_pict.
Restores old ABI after 196aff9b18
.
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Tested-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
1fff1b37a9
commit
155e61a9f0
3
fb/fb.h
3
fb/fb.h
|
@ -2080,7 +2080,8 @@ fbFillRegionSolid (DrawablePtr pDrawable,
|
|||
|
||||
extern _X_EXPORT pixman_image_t *
|
||||
image_from_pict (PicturePtr pict,
|
||||
Bool has_clip);
|
||||
Bool has_clip,
|
||||
Bool is_src);
|
||||
extern _X_EXPORT void free_pixman_pict (PicturePtr, pixman_image_t *);
|
||||
|
||||
#endif /* _FB_H_ */
|
||||
|
|
11
fb/fbpict.c
11
fb/fbpict.c
|
@ -163,9 +163,9 @@ fbComposite (CARD8 op,
|
|||
if (pMask)
|
||||
miCompositeSourceValidate (pMask, xMask, yMask, width, height);
|
||||
|
||||
src = image_from_pict (pSrc, TRUE);
|
||||
mask = image_from_pict (pMask, TRUE);
|
||||
dest = image_from_pict (pDst, TRUE);
|
||||
src = image_from_pict (pSrc, TRUE, TRUE);
|
||||
mask = image_from_pict (pMask, TRUE, TRUE);
|
||||
dest = image_from_pict (pDst, TRUE, FALSE);
|
||||
|
||||
if (src && dest && !(pMask && !mask))
|
||||
{
|
||||
|
@ -361,7 +361,7 @@ set_image_properties (pixman_image_t *image, PicturePtr pict)
|
|||
|
||||
if (pict->alphaMap)
|
||||
{
|
||||
pixman_image_t *alpha_map = image_from_pict (pict->alphaMap, TRUE);
|
||||
pixman_image_t *alpha_map = image_from_pict (pict->alphaMap, TRUE, TRUE);
|
||||
|
||||
pixman_image_set_alpha_map (
|
||||
image, alpha_map, pict->alphaOrigin.x, pict->alphaOrigin.y);
|
||||
|
@ -395,7 +395,8 @@ set_image_properties (pixman_image_t *image, PicturePtr pict)
|
|||
|
||||
pixman_image_t *
|
||||
image_from_pict (PicturePtr pict,
|
||||
Bool has_clip)
|
||||
Bool has_clip,
|
||||
Bool is_src)
|
||||
{
|
||||
pixman_image_t *image = NULL;
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ fbAddTraps (PicturePtr pPicture,
|
|||
int ntrap,
|
||||
xTrap *traps)
|
||||
{
|
||||
pixman_image_t *image = image_from_pict (pPicture, FALSE);
|
||||
pixman_image_t *image = image_from_pict (pPicture, FALSE, FALSE);
|
||||
|
||||
if (!image)
|
||||
return;
|
||||
|
@ -56,7 +56,7 @@ fbRasterizeTrapezoid (PicturePtr pPicture,
|
|||
int x_off,
|
||||
int y_off)
|
||||
{
|
||||
pixman_image_t *image = image_from_pict (pPicture, FALSE);
|
||||
pixman_image_t *image = image_from_pict (pPicture, FALSE, FALSE);
|
||||
|
||||
if (!image)
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue