Lines Matching refs:x2

31 SDL_DrawLine1(SDL_Surface * dst, int x1, int y1, int x2, int y2, Uint32 color,  in SDL_DrawLine1()  argument
38 if (x1 <= x2) { in SDL_DrawLine1()
40 length = draw_end ? (x2-x1+1) : (x2-x1); in SDL_DrawLine1()
42 pixel = (Uint8 *)dst->pixels + y1 * pitch + x2; in SDL_DrawLine1()
46 length = draw_end ? (x1-x2+1) : (x1-x2); in SDL_DrawLine1()
49 } else if (x1 == x2) { in SDL_DrawLine1()
51 } else if (ABS(x1 - x2) == ABS(y1 - y2)) { in SDL_DrawLine1()
54 BLINE(x1, y1, x2, y2, DRAW_FASTSETPIXELXY1, draw_end); in SDL_DrawLine1()
59 SDL_DrawLine2(SDL_Surface * dst, int x1, int y1, int x2, int y2, Uint32 color, in SDL_DrawLine2() argument
64 } else if (x1 == x2) { in SDL_DrawLine2()
66 } else if (ABS(x1 - x2) == ABS(y1 - y2)) { in SDL_DrawLine2()
73 AALINE(x1, y1, x2, y2, in SDL_DrawLine2()
77 AALINE(x1, y1, x2, y2, in SDL_DrawLine2()
81 AALINE(x1, y1, x2, y2, in SDL_DrawLine2()
89 SDL_DrawLine4(SDL_Surface * dst, int x1, int y1, int x2, int y2, Uint32 color, in SDL_DrawLine4() argument
94 } else if (x1 == x2) { in SDL_DrawLine4()
96 } else if (ABS(x1 - x2) == ABS(y1 - y2)) { in SDL_DrawLine4()
104 AALINE(x1, y1, x2, y2, in SDL_DrawLine4()
108 AALINE(x1, y1, x2, y2, in SDL_DrawLine4()
113 AALINE(x1, y1, x2, y2, in SDL_DrawLine4()
121 int x1, int y1, int x2, int y2,
142 SDL_DrawLine(SDL_Surface * dst, int x1, int y1, int x2, int y2, Uint32 color) in SDL_DrawLine() argument
157 if (!SDL_IntersectRectAndLine(&dst->clip_rect, &x1, &y1, &x2, &y2)) { in SDL_DrawLine()
161 func(dst, x1, y1, x2, y2, color, SDL_TRUE); in SDL_DrawLine()
171 int x2, y2; in SDL_DrawLines() local
187 x2 = points[i].x; in SDL_DrawLines()
192 if (!SDL_IntersectRectAndLine(&dst->clip_rect, &x1, &y1, &x2, &y2)) { in SDL_DrawLines()
197 draw_end = (x2 != points[i].x || y2 != points[i].y); in SDL_DrawLines()
199 func(dst, x1, y1, x2, y2, color, draw_end); in SDL_DrawLines()