Lines Matching refs:res

119         jint res;                                                           \
133 TESTANDCLIP(yMinf, yMaxf, Y0, X0, Y1, X1, jint, res); \
134 if (res == CRES_INVISIBLE) break; \
135 TESTANDCLIP(yMinf, yMaxf, Y1, X1, Y0, X0, jint, res); \
136 if (res == CRES_INVISIBLE) break; \
137 TESTANDCLIP(xMinf, xMaxf, X0, Y0, X1, Y1, jint, res); \
138 if (res == CRES_INVISIBLE) break; \
139 TESTANDCLIP(xMinf, xMaxf, X1, Y1, X0, Y0, jint, res); \
140 if (res == CRES_INVISIBLE) break; \
323 #define IS_CLIPPED(res) (res == CRES_MIN_CLIPPED || res == CRES_MAX_CLIPPED)
325 #define TESTANDCLIP(LINE_MIN, LINE_MAX, a1, b1, a2, b2, TYPE, res) \
328 res = CRES_NOT_CLIPPED; \
332 res = CRES_INVISIBLE; \
335 res = CRES_MIN_CLIPPED; \
339 res = CRES_INVISIBLE; \
342 res = CRES_MAX_CLIPPED; \
371 #define CLIPCLAMP(LINE_MIN, LINE_MAX, a1, b1, a2, b2, a3, b3, TYPE, res) \
375 TESTANDCLIP(LINE_MIN, LINE_MAX, a1, b1, a2, b2, TYPE, res); \
376 if (res == CRES_MIN_CLIPPED) { \
378 } else if (res == CRES_MAX_CLIPPED) { \
380 res = CRES_MAX_CLIPPED; \
381 } else if (res == CRES_INVISIBLE) { \
383 res = CRES_INVISIBLE; \
387 res = CRES_NOT_CLIPPED; \
1370 jint X1, Y1, X2, Y2, X3, Y3, res;
1385 TESTANDCLIP(yMin, yMax, y1, x1, y2, x2, jfloat, res);
1386 if (res == CRES_INVISIBLE) return;
1387 clipped = IS_CLIPPED(res);
1388 TESTANDCLIP(yMin, yMax, y2, x2, y1, x1, jfloat, res);
1389 if (res == CRES_INVISIBLE) return;
1390 lastClipped = IS_CLIPPED(res);
1395 x1, y1, x2, y2, jfloat, res);
1396 if (res == CRES_INVISIBLE) return;
1397 clipped = clipped || IS_CLIPPED(res);
1399 x2, y2, x1, y1, jfloat, res);
1400 if (res == CRES_INVISIBLE) return;
1401 lastClipped = lastClipped || IS_CLIPPED(res);
1423 CLIPCLAMP(xMin, xMax, x1, y1, x2, y2, x3, y3, jfloat, res);
1428 if (res == CRES_MIN_CLIPPED) {
1434 } else if (res == CRES_INVISIBLE) {
1440 CLIPCLAMP(xMin, xMax, x2, y2, x1, y1, x3, y3, jfloat, res);
1443 lastClipped = lastClipped || (res == CRES_MAX_CLIPPED);
1451 if (res == CRES_MIN_CLIPPED) {
2099 jint x3, y3, res;
2118 TESTANDCLIP(outYMin, outYMax, y1, x1, y2, x2, jint, res);
2119 if (res == CRES_INVISIBLE) return;
2120 TESTANDCLIP(outYMin, outYMax, y2, x2, y1, x1, jint, res);
2121 if (res == CRES_INVISIBLE) return;
2122 lastClipped = IS_CLIPPED(res);
2125 CLIPCLAMP(outXMin, outXMax, x1, y1, x2, y2, x3, y3, jint, res);
2128 if (res == CRES_MIN_CLIPPED) {
2132 } else if (res == CRES_INVISIBLE) {
2137 CLIPCLAMP(outXMin, outXMax, x2, y2, x1, y1, x3, y3, jint, res);
2140 lastClipped = lastClipped || (res == CRES_MAX_CLIPPED);
2146 if (res == CRES_MIN_CLIPPED) {
2186 jint res;
2209 res = ProcessPath(&hnd, (jfloat)transX, (jfloat)transY,
2211 if (!res) {