summaryrefslogtreecommitdiff
path: root/render/picture.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2005-12-09 18:35:21 +0000
committerAdam Jackson <ajax@nwnk.net>2005-12-09 18:35:21 +0000
commit62f3ef930adc7edd49b27dd1f7b0f51bc8bc0afa (patch)
tree5d30494c873a9f878012ffc00ec717111e0ea223 /render/picture.c
parentb99dea9dcf99f907a3536c0db1c39cc67931a5b1 (diff)
Bug #5258: Restore binary compatibility with 6.8.2's PictureRec. (Aaron
Plattner)
Diffstat (limited to 'render/picture.c')
-rw-r--r--render/picture.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/render/picture.c b/render/picture.c
index a598f740b..3ed60310e 100644
--- a/render/picture.c
+++ b/render/picture.c
@@ -745,6 +745,7 @@ SetPictureToDefaults (PicturePtr pPicture)
pPicture->freeCompClip = FALSE;
pPicture->clientClipType = CT_NONE;
pPicture->componentAlpha = FALSE;
+ pPicture->repeatType = RepeatNone;
pPicture->alphaMap = 0;
pPicture->alphaOrigin.x = 0;
@@ -1174,7 +1175,10 @@ ChangePicture (PicturePtr pPicture,
unsigned int newr;
newr = NEXT_VAL(unsigned int);
if (newr <= RepeatReflect)
- pPicture->repeat = newr;
+ {
+ pPicture->repeat = (newr != RepeatNone);
+ pPicture->repeatType = newr;
+ }
else
{
client->errorValue = newr;
@@ -1501,6 +1505,7 @@ CopyPicture (PicturePtr pSrc,
{
case CPRepeat:
pDst->repeat = pSrc->repeat;
+ pDst->repeatType = pSrc->repeatType;
break;
case CPAlphaMap:
if (pSrc->alphaMap && pSrc->alphaMap->pDrawable->type == DRAWABLE_PIXMAP)