Lines Matching refs:x2

843 	int x1, y1, x2, y2;  in gdImageBrushApply()  local
855 x2 = x1 + gdImageSX(im->brush); in gdImageBrushApply()
862 for (lx = x1; (lx < x2); lx++) { in gdImageBrushApply()
877 for (lx = x1; lx < x2; lx++) { in gdImageBrushApply()
893 for (lx = x1; lx < x2; lx++) { in gdImageBrushApply()
999 static void _gdImageFilledHRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color);
1001 static void gdImageHLine(gdImagePtr im, int y, int x1, int x2, int col) in gdImageHLine() argument
1005 _gdImageFilledHRectangle(im, x1, y - thickhalf, x2, y + im->thick - thickhalf - 1, col); in gdImageHLine()
1007 if (x2 < x1) { in gdImageHLine()
1008 int t = x2; in gdImageHLine()
1009 x2 = x1; in gdImageHLine()
1013 for (;x1 <= x2; x1++) { in gdImageHLine()
1040 void gdImageLine (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageLine() argument
1053 gdImageAALine(im, x1, y1, x2, y2, im->AA_color); in gdImageLine()
1058 if (!clip_1d(&x1,&y1,&x2,&y2,gdImageSX(im)-1) || !clip_1d(&y1,&x1,&y2,&x2,gdImageSY(im)-1)) { in gdImageLine()
1062 dx = abs (x2 - x1); in gdImageLine()
1069 gdImageHLine(im, y1, x1, x2, color); in gdImageLine()
1094 if (x1 > x2) { in gdImageLine()
1095 x = x2; in gdImageLine()
1103 xend = x2; in gdImageLine()
1160 x = x2; in gdImageLine()
1176 if (((x2 - x1) * xdirflag) > 0) { in gdImageLine()
1236 void gdImageAALine (gdImagePtr im, int x1, int y1, int x2, int y2, int col) in gdImageAALine() argument
1244 gdImageLine(im, x1, y1, x2, y2, col); in gdImageAALine()
1249 if (!clip_1d(&x1,&y1,&x2,&y2,gdImageSX(im)-1) || !clip_1d(&y1,&x1,&y2,&x2,gdImageSY(im)-1)) { in gdImageAALine()
1253 dx = x2 - x1; in gdImageAALine()
1262 x1 = x2; in gdImageAALine()
1263 x2 = tmp; in gdImageAALine()
1267 dx = x2 - x1; in gdImageAALine()
1273 for (x = x1; x <= x2; x++) { in gdImageAALine()
1290 x1 = x2; in gdImageAALine()
1291 x2 = tmp; in gdImageAALine()
1295 dx = x2 - x1; in gdImageAALine()
1320 void gdImageDashedLine (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageDashedLine() argument
1329 dx = abs(x2 - x1); in gdImageDashedLine()
1346 if (x1 > x2) { in gdImageDashedLine()
1347 x = x2; in gdImageDashedLine()
1355 xend = x2; in gdImageDashedLine()
1397 x = x2; in gdImageDashedLine()
1407 if (((x2 - x1) * xdirflag) > 0) { in gdImageDashedLine()
1916 int l, x1, x2, dy; in gdImageFill() local
1973 FILL_POP(y, x1, x2, dy); in gdImageFill()
1994 if (x>x2+1) { in gdImageFill()
1995 FILL_PUSH(y, x2+1, x-1, -dy); in gdImageFill()
1997 skip: for (x++; x<=x2 && (gdImageGetPixel(im, x, y)!=oc); x++); in gdImageFill()
2000 } while (x<=x2); in gdImageFill()
2011 int i, l, x1, x2, dy; in _gdImageFillTiled() local
2042 FILL_POP(y, x1, x2, dy); in _gdImageFillTiled()
2066 if (x>x2+1) { in _gdImageFillTiled()
2067 FILL_PUSH(y, x2+1, x-1, -dy); in _gdImageFillTiled()
2069 skip: for(x++; x<=x2 && (pts[y][x] || gdImageGetPixel(im,x, y)!=oc); x++); in _gdImageFillTiled()
2071 } while (x<=x2); in _gdImageFillTiled()
2084 void gdImageRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageRectangle() argument
2089 if (x1 == x2 && y1 == y2 && thick == 1) { in gdImageRectangle()
2100 if (x2 < x1) { in gdImageRectangle()
2102 x1 = x2; in gdImageRectangle()
2103 x2 = t; in gdImageRectangle()
2113 x2lr = x2 + half; in gdImageRectangle()
2150 if (x1 == x2 || y1 == y2) { in gdImageRectangle()
2151 gdImageLine(im, x1, y1, x2, y2, color); in gdImageRectangle()
2153 gdImageLine(im, x1, y1, x2, y1, color); in gdImageRectangle()
2154 gdImageLine(im, x1, y2, x2, y2, color); in gdImageRectangle()
2156 gdImageLine(im, x2, y1 + 1, x2, y2 - 1, color); in gdImageRectangle()
2161 static void _gdImageFilledHRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in _gdImageFilledHRectangle() argument
2165 if (x1 == x2 && y1 == y2) { in _gdImageFilledHRectangle()
2170 if (x1 > x2) { in _gdImageFilledHRectangle()
2172 x1 = x2; in _gdImageFilledHRectangle()
2173 x2 = x; in _gdImageFilledHRectangle()
2186 if (x2 >= gdImageSX(im)) { in _gdImageFilledHRectangle()
2187 x2 = gdImageSX(im) - 1; in _gdImageFilledHRectangle()
2198 for (x = x1; (x <= x2); x++) { in _gdImageFilledHRectangle()
2205 static void _gdImageFilledVRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in _gdImageFilledVRectangle() argument
2209 if (x1 == x2 && y1 == y2) { in _gdImageFilledVRectangle()
2214 if (x1 > x2) { in _gdImageFilledVRectangle()
2216 x1 = x2; in _gdImageFilledVRectangle()
2217 x2 = x; in _gdImageFilledVRectangle()
2230 if (x2 >= gdImageSX(im)) { in _gdImageFilledVRectangle()
2231 x2 = gdImageSX(im) - 1; in _gdImageFilledVRectangle()
2243 for (x = x1; (x <= x2); x++) { in _gdImageFilledVRectangle()
2249 void gdImageFilledRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageFilledRectangle() argument
2251 _gdImageFilledVRectangle(im, x1, y1, x2, y2, color); in gdImageFilledRectangle()
2687 int x2, y2; in gdImageFilledPolygon() local
2731 x1 = x2 = p[0].x; in gdImageFilledPolygon()
2735 } else if (p[i].x > x2) { in gdImageFilledPolygon()
2736 x2 = p[i].x; in gdImageFilledPolygon()
2739 gdImageLine(im, x1, miny, x2, miny, c); in gdImageFilledPolygon()
2769 x2 = p[ind2].x; in gdImageFilledPolygon()
2773 x2 = p[ind1].x; in gdImageFilledPolygon()
2783 im->polyInts[ints++] = (float) ((y - y1) * (x2 - x1)) / (float) (y2 - y1) + 0.5 + x1; in gdImageFilledPolygon()
2785 im->polyInts[ints++] = x2; in gdImageFilledPolygon()
3053 void gdImageSetClip (gdImagePtr im, int x1, int y1, int x2, int y2) in gdImageSetClip() argument
3061 if (x2 < 0) { in gdImageSetClip()
3062 x2 = 0; in gdImageSetClip()
3064 if (x2 >= im->sx) { in gdImageSetClip()
3065 x2 = im->sx - 1; in gdImageSetClip()
3081 im->cx2 = x2; in gdImageSetClip()