Lines Matching refs:sy
290 void DrawLine(int sx, int sy, int tx, int ty, RGB555 col) in DrawLine() argument
300 tmp = sy, sy = ty, ty = tmp; in DrawLine()
302 wx = tx - sx, wy = ty - sy; in DrawLine()
309 tmp = sy + 1, sy = ty + 1, ty = tmp; in DrawLine()
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()
319 p = GetSurface(sx, sy); in DrawLine()
329 if (!IsBoundY(pc, sy) || (sx >= pc->clip.t.x)) in DrawLine()
337 p = GetSurface(sx, sy); in DrawLine()
352 p = GetSurface(sx, sy); in DrawLine()
354 --sx, sy -= y_delta; in DrawLine()
361 moved = TRUE, dy = 0, sy += y_delta, p += y_ofs; in DrawLine()
362 if (moved && IsBoundX(pc, sx) && IsBoundY(pc, sy)) in DrawLine()