Lines Matching refs:pc
78 DrawiCommon *const pc = &drawi_common; in NormalizeRegion() local
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()
95 p->wid.y += p->pos.y - pc->clip.o.y, p->pos.y = pc->clip.o.y; in NormalizeRegion()
98 else if (p->wid.y > pc->clip.t.y - p->pos.y) in NormalizeRegion()
99 p->wid.y = pc->clip.t.y - p->pos.y; in NormalizeRegion()
292 DrawiCommon *const pc = &drawi_common; in DrawLine() local
311 if (!IsBoundX(pc, sx) || (sy >= pc->clip.t.y)) in DrawLine()
315 if (sy < pc->clip.o.y) in DrawLine()
316 wy += sy, sy = pc->clip.o.y; in DrawLine()
317 if (wy > pc->clip.t.y - sy) in DrawLine()
318 wy = pc->clip.t.y - sy; in DrawLine()
329 if (!IsBoundY(pc, sy) || (sx >= pc->clip.t.x)) in DrawLine()
333 if (sx < pc->clip.o.x) in DrawLine()
334 wx += sx, sx = pc->clip.o.x; in DrawLine()
335 if (wx > pc->clip.t.x - sx) in DrawLine()
336 wx = pc->clip.t.x - sx; in DrawLine()
362 if (moved && IsBoundX(pc, sx) && IsBoundY(pc, sy)) in DrawLine()
370 DrawiCommon *const pc = &drawi_common; in DrawCircle() local
384 if (IsBoundX(pc, x) && IsBoundY(pc, y)) in DrawCircle()
402 DrawiCommon *const pc = &drawi_common; in DrawTextLen() local
445 if ((tx > pc->clip.o.x - 8) && (y > pc->clip.o.y - 8) && in DrawTextLen()
446 (tx < pc->clip.t.x) && (y < pc->clip.t.y)) in DrawTextLen()
452 if (pc->clip.o.x - tx > 0) in DrawTextLen()
453 base = pc->clip.o.x - tx; in DrawTextLen()
454 else if (wx > pc->clip.t.x - tx) in DrawTextLen()
455 wx = pc->clip.t.x - tx; in DrawTextLen()
456 if (pc->clip.o.y - y > 0) in DrawTextLen()
458 wy -= pc->clip.o.y - y; in DrawTextLen()
459 pf += pc->clip.o.y - y; in DrawTextLen()
460 dst += GX_LCD_SIZE_X * (pc->clip.o.y - y); in DrawTextLen()
462 else if (wy > pc->clip.t.y - y) in DrawTextLen()
463 wy = pc->clip.t.y - y; in DrawTextLen()