[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help fix this: Bug in sliced XPM images on X -- bad clip mask origin
Kim F. Storm
Re: Help fix this: Bug in sliced XPM images on X -- bad clip mask origin.
18 Jun 2004 09:58:14 +0200
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50
"Jan D." <address@hidden> writes:
> The thing to remember is that the clip_origin in the GC is relative to
> the destination, never the source. So in effect, a XCopyArea first
> puts the mask on the destination at (clip_x, clip_y). Then it copies the
> bits from the source to the destination, where the mask is non-zero.
Ah, that explains a few things :-)
> I've checked in the following patch, it makes the above test case work OK.
Thank you very much.
> However, there seems to be more code that deals with slices, so there may be
> other parts thats need this kind of modification also.
I haven't had problems with those parts, so I hope not :-)
Kim F. Storm <address@hidden> http://www.cua.dk