Lines Matching refs:y

62 static inline RGB555 *GetSurface(int x, int y)  in GetSurface()  argument
64 return drawi_common.next_surface + x + y * GX_LCD_SIZE_X; in GetSurface()
71 static inline BOOL IsBoundY(DrawiCommon * p, int y) in IsBoundY() argument
73 return (y >= p->clip.o.y) && (y < p->clip.t.y); in IsBoundY()
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()
96 if (p->wid.y <= 0) 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()
144 cur_pt.x = 0, cur_pt.y = 0; in InitDraw()
149 p->clip.o.y = 0; in InitDraw()
151 p->clip.t.y = GX_LCD_SIZE_Y; in InitDraw()
197 p_bak->o.y = p->clip.o.y; in ClipWindow()
199 p_bak->t.y = p->clip.t.y; in ClipWindow()
210 p->clip.o.y = oy; in ClipWindow()
212 p->clip.t.y = ty; in ClipWindow()
221 p->clip.o.y = p_bak->o.y; in RestoreClipWindow()
223 p->clip.t.y = p_bak->t.y; in RestoreClipWindow()
234 void FillRect(int x, int y, int wx, int wy, RGB555 col) in FillRect() argument
237 r.pos.x = x, r.pos.y = y; in FillRect()
238 r.wid.x = wx, r.wid.y = wy; in FillRect()
241 RGB555 *p = GetSurface(r.pos.x, r.pos.y); in FillRect()
242 while (--r.wid.y >= 0) in FillRect()
250 void BlitRect(int x, int y, int wx, int wy, RGB555 * src, int stroke) in BlitRect() argument
253 r.pos.x = x, r.pos.y = y; in BlitRect()
254 r.wid.x = wx, r.wid.y = wy; in BlitRect()
257 RGB555 *p = GetSurface(r.pos.x, r.pos.y); in BlitRect()
258 while (--r.wid.y >= 0) in BlitRect()
267 void TransRect(int x, int y, int wx, int wy, RGB555 * src, int stroke) in TransRect() argument
270 r.pos.x = x, r.pos.y = y; in TransRect()
271 r.wid.x = wx, r.wid.y = wy; in TransRect()
274 RGB555 *p = GetSurface(r.pos.x, r.pos.y); in TransRect()
276 while (--r.wid.y >= 0) in TransRect()
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()
379 int ax, ay, x, y; in DrawCircle() local
383 x = dx / 65536, y = dy / 65536; in DrawCircle()
384 if (IsBoundX(pc, x) && IsBoundY(pc, y)) in DrawCircle()
385 *GetSurface(x, y) = col; in DrawCircle()
389 void DrawText(int x, int y, const char *s, ...) in DrawText() argument
397 DrawTextLen(x, y, temp, sizeof(temp) - 1); in DrawText()
400 void DrawTextLen(int x, int y, const char *s, int n) in DrawTextLen() argument
404 RGB555 *p = GetSurface(x, y); in DrawTextLen()
425 y += 8; in DrawTextLen()
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()
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()