Lines Matching refs:x2

793 	int x1, y1, x2, y2;  in gdImageBrushApply()  local
805 x2 = x1 + gdImageSX(im->brush); in gdImageBrushApply()
812 for (lx = x1; (lx < x2); lx++) { in gdImageBrushApply()
827 for (lx = x1; lx < x2; lx++) { in gdImageBrushApply()
843 for (lx = x1; lx < x2; lx++) { in gdImageBrushApply()
1050 static void gdImageHLine(gdImagePtr im, int y, int x1, int x2, int col) in gdImageHLine() argument
1054 gdImageFilledRectangle(im, x1, y - thickhalf, x2, y + im->thick - thickhalf - 1, col); in gdImageHLine()
1056 if (x2 < x1) { in gdImageHLine()
1057 int t = x2; in gdImageHLine()
1058 x2 = x1; in gdImageHLine()
1062 for (;x1 <= x2; x1++) { in gdImageHLine()
1089 void gdImageLine (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageLine() argument
1102 gdImageAALine(im, x1, y1, x2, y2, im->AA_color); in gdImageLine()
1107 if (!clip_1d(&x1,&y1,&x2,&y2,gdImageSX(im)) || !clip_1d(&y1,&x1,&y2,&x2,gdImageSY(im))) { in gdImageLine()
1111 dx = abs (x2 - x1); in gdImageLine()
1118 gdImageHLine(im, y1, x1, x2, color); in gdImageLine()
1143 if (x1 > x2) { in gdImageLine()
1144 x = x2; in gdImageLine()
1152 xend = x2; in gdImageLine()
1209 x = x2; in gdImageLine()
1225 if (((x2 - x1) * xdirflag) > 0) { in gdImageLine()
1285 void gdImageAALine (gdImagePtr im, int x1, int y1, int x2, int y2, int col) in gdImageAALine() argument
1295 x1 += (y1 * (x1 - x2)) / (y2 - y1); in gdImageAALine()
1299 x2 += (y2 * (x1 - x2)) / (y2 - y1); in gdImageAALine()
1308 x1 -= ((im->sy - y1) * (x1 - x2)) / (y2 - y1); in gdImageAALine()
1312 x2 -= ((im->sy - y2) * (x1 - x2)) / (y2 - y1); in gdImageAALine()
1317 if (x1 < 0 && x2 < 0) { in gdImageAALine()
1321 y1 += (x1 * (y1 - y2)) / (x2 - x1); in gdImageAALine()
1324 if (x2 < 0) { in gdImageAALine()
1325 y2 += (x2 * (y1 - y2)) / (x2 - x1); in gdImageAALine()
1326 x2 = 0; in gdImageAALine()
1329 if (x1 >= im->sx && x2 >= im->sx) { in gdImageAALine()
1333 y1 -= ((im->sx - x1) * (y1 - y2)) / (x2 - x1); in gdImageAALine()
1336 if (x2 >= im->sx) { in gdImageAALine()
1337 y2 -= ((im->sx - x2) * (y1 - y2)) / (x2 - x1); in gdImageAALine()
1338 x2 = im->sx - 1; in gdImageAALine()
1341 dx = x2 - x1; in gdImageAALine()
1350 x1 = x2; in gdImageAALine()
1351 x2 = tmp; in gdImageAALine()
1355 dx = x2 - x1; in gdImageAALine()
1361 while ((x >> 16) <= x2) { in gdImageAALine()
1372 x1 = x2; in gdImageAALine()
1373 x2 = tmp; in gdImageAALine()
1377 dx = x2 - x1; in gdImageAALine()
1396 void gdImageDashedLine (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageDashedLine() argument
1405 dx = abs(x2 - x1); in gdImageDashedLine()
1423 if (x1 > x2) { in gdImageDashedLine()
1424 x = x2; in gdImageDashedLine()
1432 xend = x2; in gdImageDashedLine()
1474 x = x2; in gdImageDashedLine()
1484 if (((x2 - x1) * xdirflag) > 0) { in gdImageDashedLine()
1860 int l, x1, x2, dy; in gdImageFill() local
1917 FILL_POP(y, x1, x2, dy); in gdImageFill()
1938 if (x>x2+1) { in gdImageFill()
1939 FILL_PUSH(y, x2+1, x-1, -dy); in gdImageFill()
1941 skip: for (x++; x<=x2 && (gdImageGetPixel(im, x, y)!=oc); x++); in gdImageFill()
1944 } while (x<=x2); in gdImageFill()
1955 int i, l, x1, x2, dy; in _gdImageFillTiled() local
1988 FILL_POP(y, x1, x2, dy); in _gdImageFillTiled()
2012 if (x>x2+1) { in _gdImageFillTiled()
2013 FILL_PUSH(y, x2+1, x-1, -dy); in _gdImageFillTiled()
2015 skip: for(x++; x<=x2 && (pts[y][x] || gdImageGetPixel(im,x, y)!=oc); x++); in _gdImageFillTiled()
2017 } while (x<=x2); in _gdImageFillTiled()
2030 void gdImageRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageRectangle() argument
2032 int x1h = x1, x1v = x1, y1h = y1, y1v = y1, x2h = x2, x2v = x2, y2h = y2, y2v = y2; in gdImageRectangle()
2037 if (x1 == x2 && y1 == y2 && thick == 1) { in gdImageRectangle()
2048 x1 = x2; in gdImageRectangle()
2049 x2 = t; in gdImageRectangle()
2052 x1h = x1; x1v = x1; y1h = y1; y1v = y1; x2h = x2; x2v = x2; y2h = y2; y2v = y2; in gdImageRectangle()
2060 x2lr = x2 + half; in gdImageRectangle()
2106 void gdImageFilledRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageFilledRectangle() argument
2111 if (x1 == x2 && y1 == y2) { in gdImageFilledRectangle()
2116 if (x1 > x2) { in gdImageFilledRectangle()
2118 x1 = x2; in gdImageFilledRectangle()
2119 x2 = x; in gdImageFilledRectangle()
2132 if (x2 >= gdImageSX(im)) { in gdImageFilledRectangle()
2133 x2 = gdImageSX(im) - 1; in gdImageFilledRectangle()
2145 for (x = x1; (x <= x2); x++) { in gdImageFilledRectangle()
2563 typedef void (*image_line)(gdImagePtr im, int x1, int y1, int x2, int y2, int color); in gdImagePolygon()
2614 int x2, y2; in gdImageFilledPolygon() local
2683 x2 = p[ind2].x; in gdImageFilledPolygon()
2687 x2 = p[ind1].x; in gdImageFilledPolygon()
2697 im->polyInts[ints++] = (float) ((y - y1) * (x2 - x1)) / (float) (y2 - y1) + 0.5 + x1; in gdImageFilledPolygon()
2699 im->polyInts[ints++] = x2; in gdImageFilledPolygon()
2972 void gdImageSetClip (gdImagePtr im, int x1, int y1, int x2, int y2) in gdImageSetClip() argument
2980 if (x2 < 0) { in gdImageSetClip()
2981 x2 = 0; in gdImageSetClip()
2983 if (x2 >= im->sx) { in gdImageSetClip()
2984 x2 = im->sx - 1; in gdImageSetClip()
3000 im->cx2 = x2; in gdImageSetClip()