I think I do not make the question clear.
Let me take an example:
picture_10x10[0].pict = XRenderCreatePicture(dpy, picture_10x10[0].d,
picture_10x10[0].format, CPRepeat, &pa);
XRenderComposite(dpy, PictOpOver, picture_10x10[0].pict, 0, win->pict,
5, 11, 0, 0, 0, 0, 40, 40);
The source picture is 10x10 region and is repeatable, the srcX is 5 and srcY is
11(greater than 10), the needed rendering region is 40x40.
After this is executed, actually a region of 40x40 is rendered. I have not see
the modulus(%) operation. For example 11%10 = 1 ... So what's your mean about
the modulus operation?
So my question is that in this condition, how the destination region is
rendered? It is important for me. From the experiment, I found it is 40x40
region rendered.
Thanks,
Frank
-----Original Message-----
From: Jonathan Morton [mailto:[email protected]]
Sent: 2010?7?10? 0:34
To: Huang, FrankR
Cc: [email protected]; [email protected]
Subject: RE: [Xorg-driver-geode] Rendering in geode
> > If Repeat is Normal (1), then the coordinate is wrapped back into
> > the image using the modulus (%) operation. This is your usual
> > repeating tile function. As a special case, a 1x1 image with Repeat
> > set to Normal is the usual way of representing a solid colour.
>
> I found that the region rendered actually is the width x height in
> this condition. I don't find the modulus operation. Any comments?
The destination region is always specified explicitly as (x,y)(WxH).
The source and mask pixels used can vary.
--
------
From: Jonathan Morton
[email protected]
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel