Home
last modified time | relevance | path

Searched refs:clip (Results 1 – 1 of 1) sorted by relevance

/TwlSDK-5.2.1/build/demos/ctrdg/backup-1/src/
Ddraw.c44 Rect clip; member
69 return (x >= p->clip.o.x) && (x < p->clip.t.x); in IsBoundX()
73 return (y >= p->clip.o.y) && (y < p->clip.t.y); in IsBoundY()
79 if (p->pos.x >= pc->clip.t.x) in NormalizeRegion()
83 if (p->pos.x - pc->clip.o.x < 0) in NormalizeRegion()
84 p->wid.x += p->pos.x - pc->clip.o.x, p->pos.x = pc->clip.o.x; in NormalizeRegion()
87 else if (p->wid.x > pc->clip.t.x - p->pos.x) in NormalizeRegion()
88 p->wid.x = pc->clip.t.x - p->pos.x; in NormalizeRegion()
90 if (p->pos.y >= pc->clip.t.y) in NormalizeRegion()
94 if (p->pos.y - pc->clip.o.y < 0) in NormalizeRegion()
[all …]