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