Do overlap checks based on window, not gstate.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@16268 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
alexm 2003-03-25 23:27:03 +00:00
parent cc6c1c8b5b
commit 78ae31019c

View file

@ -570,7 +570,7 @@ static BOOL _rect_advance(rect_trace_t *t, int *x0, int *x1)
things bottom-up instead of top-down. If so, we flip the
coordinates here. */
order = 0;
if (ags == self && sy0 <= cy0)
if (ags->wi == self->wi && sy0 <= cy0)
{
order = 1;
dst += dbpl * (cy1 - 1);
@ -945,7 +945,7 @@ static BOOL _rect_advance(rect_trace_t *t, int *x0, int *x1)
things bottom-up instead of top-down. If so, we flip the
coordinates here. */
order = 0;
if (ags == self && sy0 <= cy0)
if (ags->wi == self->wi && sy0 <= cy0)
{
order = 1;
dst += dbpl * (cy1 - 1);