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()
1998 for (x++; x<=x2 && (gdImageGetPixel(im, x, y)!=oc); x++); in gdImageFill()
2001 } while (x<=x2); in gdImageFill()
2012 int i, l, x1, x2, dy; in _gdImageFillTiled() local
2043 FILL_POP(y, x1, x2, dy); in _gdImageFillTiled()
2067 if (x>x2+1) { in _gdImageFillTiled()
2068 FILL_PUSH(y, x2+1, x-1, -dy); in _gdImageFillTiled()
2071 for(x++; x<=x2 && (pts[y][x] || gdImageGetPixel(im,x, y)!=oc); x++); in _gdImageFillTiled()
2073 } while (x<=x2); in _gdImageFillTiled()
2086 void gdImageRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageRectangle() argument
2091 if (x1 == x2 && y1 == y2 && thick == 1) { in gdImageRectangle()
2102 if (x2 < x1) { in gdImageRectangle()
2104 x1 = x2; in gdImageRectangle()
2105 x2 = t; in gdImageRectangle()
2115 x2lr = x2 + half; in gdImageRectangle()
2152 if (x1 == x2 || y1 == y2) { in gdImageRectangle()
2153 gdImageLine(im, x1, y1, x2, y2, color); in gdImageRectangle()
2155 gdImageLine(im, x1, y1, x2, y1, color); in gdImageRectangle()
2156 gdImageLine(im, x1, y2, x2, y2, color); in gdImageRectangle()
2158 gdImageLine(im, x2, y1 + 1, x2, y2 - 1, color); in gdImageRectangle()
2163 static void _gdImageFilledHRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in _gdImageFilledHRectangle() argument
2167 if (x1 == x2 && y1 == y2) { in _gdImageFilledHRectangle()
2172 if (x1 > x2) { in _gdImageFilledHRectangle()
2174 x1 = x2; in _gdImageFilledHRectangle()
2175 x2 = x; in _gdImageFilledHRectangle()
2188 if (x2 >= gdImageSX(im)) { in _gdImageFilledHRectangle()
2189 x2 = gdImageSX(im) - 1; in _gdImageFilledHRectangle()
2200 for (x = x1; (x <= x2); x++) { in _gdImageFilledHRectangle()
2207 static void _gdImageFilledVRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in _gdImageFilledVRectangle() argument
2211 if (x1 == x2 && y1 == y2) { in _gdImageFilledVRectangle()
2216 if (x1 > x2) { in _gdImageFilledVRectangle()
2218 x1 = x2; in _gdImageFilledVRectangle()
2219 x2 = x; in _gdImageFilledVRectangle()
2232 if (x2 >= gdImageSX(im)) { in _gdImageFilledVRectangle()
2233 x2 = gdImageSX(im) - 1; in _gdImageFilledVRectangle()
2245 for (x = x1; (x <= x2); x++) { in _gdImageFilledVRectangle()
2251 void gdImageFilledRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageFilledRectangle() argument
2253 _gdImageFilledVRectangle(im, x1, y1, x2, y2, color); in gdImageFilledRectangle()
2680 int x2, y2; in gdImageFilledPolygon() local
2724 x1 = x2 = p[0].x; in gdImageFilledPolygon()
2728 } else if (p[i].x > x2) { in gdImageFilledPolygon()
2729 x2 = p[i].x; in gdImageFilledPolygon()
2732 gdImageLine(im, x1, miny, x2, miny, c); in gdImageFilledPolygon()
2762 x2 = p[ind2].x; in gdImageFilledPolygon()
2766 x2 = p[ind1].x; in gdImageFilledPolygon()
2776 im->polyInts[ints++] = (float) ((y - y1) * (x2 - x1)) / (float) (y2 - y1) + 0.5 + x1; in gdImageFilledPolygon()
2778 im->polyInts[ints++] = x2; in gdImageFilledPolygon()
3046 void gdImageSetClip (gdImagePtr im, int x1, int y1, int x2, int y2) in gdImageSetClip() argument
3054 if (x2 < 0) { in gdImageSetClip()
3055 x2 = 0; in gdImageSetClip()
3057 if (x2 >= im->sx) { in gdImageSetClip()
3058 x2 = im->sx - 1; in gdImageSetClip()
3074 im->cx2 = x2; in gdImageSetClip()