Lines Matching refs:x2

813 	int x1, y1, x2, y2;  in gdImageBrushApply()  local
825 x2 = x1 + gdImageSX(im->brush); in gdImageBrushApply()
832 for (lx = x1; (lx < x2); lx++) { in gdImageBrushApply()
847 for (lx = x1; lx < x2; lx++) { in gdImageBrushApply()
863 for (lx = x1; lx < x2; lx++) { in gdImageBrushApply()
969 static void _gdImageFilledHRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color);
971 static void gdImageHLine(gdImagePtr im, int y, int x1, int x2, int col) in gdImageHLine() argument
975 _gdImageFilledHRectangle(im, x1, y - thickhalf, x2, y + im->thick - thickhalf - 1, col); in gdImageHLine()
977 if (x2 < x1) { in gdImageHLine()
978 int t = x2; in gdImageHLine()
979 x2 = x1; in gdImageHLine()
983 for (;x1 <= x2; x1++) { in gdImageHLine()
1010 void gdImageLine (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageLine() argument
1023 gdImageAALine(im, x1, y1, x2, y2, im->AA_color); in gdImageLine()
1028 if (!clip_1d(&x1,&y1,&x2,&y2,gdImageSX(im)-1) || !clip_1d(&y1,&x1,&y2,&x2,gdImageSY(im)-1)) { in gdImageLine()
1032 dx = abs (x2 - x1); in gdImageLine()
1039 gdImageHLine(im, y1, x1, x2, color); in gdImageLine()
1064 if (x1 > x2) { in gdImageLine()
1065 x = x2; in gdImageLine()
1073 xend = x2; in gdImageLine()
1130 x = x2; in gdImageLine()
1146 if (((x2 - x1) * xdirflag) > 0) { in gdImageLine()
1206 void gdImageAALine (gdImagePtr im, int x1, int y1, int x2, int y2, int col) in gdImageAALine() argument
1214 gdImageLine(im, x1, y1, x2, y2, col); in gdImageAALine()
1219 if (!clip_1d(&x1,&y1,&x2,&y2,gdImageSX(im)-1) || !clip_1d(&y1,&x1,&y2,&x2,gdImageSY(im)-1)) { in gdImageAALine()
1223 dx = x2 - x1; in gdImageAALine()
1232 x1 = x2; in gdImageAALine()
1233 x2 = tmp; in gdImageAALine()
1237 dx = x2 - x1; in gdImageAALine()
1243 for (x = x1; x <= x2; x++) { in gdImageAALine()
1260 x1 = x2; in gdImageAALine()
1261 x2 = tmp; in gdImageAALine()
1265 dx = x2 - x1; in gdImageAALine()
1290 void gdImageDashedLine (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageDashedLine() argument
1299 dx = abs(x2 - x1); in gdImageDashedLine()
1316 if (x1 > x2) { in gdImageDashedLine()
1317 x = x2; in gdImageDashedLine()
1325 xend = x2; in gdImageDashedLine()
1367 x = x2; in gdImageDashedLine()
1377 if (((x2 - x1) * xdirflag) > 0) { in gdImageDashedLine()
1886 int l, x1, x2, dy; in gdImageFill() local
1943 FILL_POP(y, x1, x2, dy); in gdImageFill()
1964 if (x>x2+1) { in gdImageFill()
1965 FILL_PUSH(y, x2+1, x-1, -dy); in gdImageFill()
1968 for (x++; x<=x2 && (gdImageGetPixel(im, x, y)!=oc); x++); in gdImageFill()
1971 } while (x<=x2); in gdImageFill()
1982 int i, l, x1, x2, dy; in _gdImageFillTiled() local
2013 FILL_POP(y, x1, x2, dy); in _gdImageFillTiled()
2037 if (x>x2+1) { in _gdImageFillTiled()
2038 FILL_PUSH(y, x2+1, x-1, -dy); in _gdImageFillTiled()
2041 for(x++; x<=x2 && (pts[y][x] || gdImageGetPixel(im,x, y)!=oc); x++); in _gdImageFillTiled()
2043 } while (x<=x2); in _gdImageFillTiled()
2056 void gdImageRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageRectangle() argument
2061 if (x1 == x2 && y1 == y2 && thick == 1) { in gdImageRectangle()
2072 if (x2 < x1) { in gdImageRectangle()
2074 x1 = x2; in gdImageRectangle()
2075 x2 = t; in gdImageRectangle()
2085 x2lr = x2 + half; in gdImageRectangle()
2122 if (x1 == x2 || y1 == y2) { in gdImageRectangle()
2123 gdImageLine(im, x1, y1, x2, y2, color); in gdImageRectangle()
2125 gdImageLine(im, x1, y1, x2, y1, color); in gdImageRectangle()
2126 gdImageLine(im, x1, y2, x2, y2, color); in gdImageRectangle()
2128 gdImageLine(im, x2, y1 + 1, x2, y2 - 1, color); in gdImageRectangle()
2133 static void _gdImageFilledHRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in _gdImageFilledHRectangle() argument
2137 if (x1 == x2 && y1 == y2) { in _gdImageFilledHRectangle()
2142 if (x1 > x2) { in _gdImageFilledHRectangle()
2144 x1 = x2; in _gdImageFilledHRectangle()
2145 x2 = x; in _gdImageFilledHRectangle()
2158 if (x2 >= gdImageSX(im)) { in _gdImageFilledHRectangle()
2159 x2 = gdImageSX(im) - 1; in _gdImageFilledHRectangle()
2170 for (x = x1; (x <= x2); x++) { in _gdImageFilledHRectangle()
2177 static void _gdImageFilledVRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in _gdImageFilledVRectangle() argument
2181 if (x1 == x2 && y1 == y2) { in _gdImageFilledVRectangle()
2186 if (x1 > x2) { in _gdImageFilledVRectangle()
2188 x1 = x2; in _gdImageFilledVRectangle()
2189 x2 = x; in _gdImageFilledVRectangle()
2202 if (x2 >= gdImageSX(im)) { in _gdImageFilledVRectangle()
2203 x2 = gdImageSX(im) - 1; in _gdImageFilledVRectangle()
2215 for (x = x1; (x <= x2); x++) { in _gdImageFilledVRectangle()
2221 void gdImageFilledRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageFilledRectangle() argument
2223 _gdImageFilledVRectangle(im, x1, y1, x2, y2, color); in gdImageFilledRectangle()
2650 int x2, y2; in gdImageFilledPolygon() local
2694 x1 = x2 = p[0].x; in gdImageFilledPolygon()
2698 } else if (p[i].x > x2) { in gdImageFilledPolygon()
2699 x2 = p[i].x; in gdImageFilledPolygon()
2702 gdImageLine(im, x1, miny, x2, miny, c); in gdImageFilledPolygon()
2732 x2 = p[ind2].x; in gdImageFilledPolygon()
2736 x2 = p[ind1].x; in gdImageFilledPolygon()
2746 im->polyInts[ints++] = (float) ((y - y1) * (x2 - x1)) / (float) (y2 - y1) + 0.5 + x1; in gdImageFilledPolygon()
2748 im->polyInts[ints++] = x2; in gdImageFilledPolygon()
3016 void gdImageSetClip (gdImagePtr im, int x1, int y1, int x2, int y2) in gdImageSetClip() argument
3024 if (x2 < 0) { in gdImageSetClip()
3025 x2 = 0; in gdImageSetClip()
3027 if (x2 >= im->sx) { in gdImageSetClip()
3028 x2 = im->sx - 1; in gdImageSetClip()
3044 im->cx2 = x2; in gdImageSetClip()