1416 subpath (because of exiting |
1416 subpath (because of exiting |
1417 out of boundaries) |
1417 out of boundaries) |
1418 */ |
1418 */ |
1419 ); |
1419 ); |
1420 } else { |
1420 } else { |
1421 /* Clamping starting from first vertex of the the processed segment |
1421 /* Clamping starting from first vertex of the processed segment |
1422 */ |
1422 */ |
1423 CLIPCLAMP(xMin, xMax, x1, y1, x2, y2, x3, y3, jfloat, res); |
1423 CLIPCLAMP(xMin, xMax, x1, y1, x2, y2, x3, y3, jfloat, res); |
1424 X1 = (jint)(x1*MDP_MULT); |
1424 X1 = (jint)(x1*MDP_MULT); |
1425 Y1 = (jint)(y1*MDP_MULT); |
1425 Y1 = (jint)(y1*MDP_MULT); |
1426 |
1426 |
1433 |
1433 |
1434 } else if (res == CRES_INVISIBLE) { |
1434 } else if (res == CRES_INVISIBLE) { |
1435 return; |
1435 return; |
1436 } |
1436 } |
1437 |
1437 |
1438 /* Clamping starting from last vertex of the the processed segment |
1438 /* Clamping starting from last vertex of the processed segment |
1439 */ |
1439 */ |
1440 CLIPCLAMP(xMin, xMax, x2, y2, x1, y1, x3, y3, jfloat, res); |
1440 CLIPCLAMP(xMin, xMax, x2, y2, x1, y1, x3, y3, jfloat, res); |
1441 |
1441 |
1442 /* Checking if there was a clip by right boundary */ |
1442 /* Checking if there was a clip by right boundary */ |
1443 lastClipped = lastClipped || (res == CRES_MAX_CLIPPED); |
1443 lastClipped = lastClipped || (res == CRES_MAX_CLIPPED); |
2119 if (res == CRES_INVISIBLE) return; |
2119 if (res == CRES_INVISIBLE) return; |
2120 TESTANDCLIP(outYMin, outYMax, y2, x2, y1, x1, jint, res); |
2120 TESTANDCLIP(outYMin, outYMax, y2, x2, y1, x1, jint, res); |
2121 if (res == CRES_INVISIBLE) return; |
2121 if (res == CRES_INVISIBLE) return; |
2122 lastClipped = IS_CLIPPED(res); |
2122 lastClipped = IS_CLIPPED(res); |
2123 |
2123 |
2124 /* Clamping starting from first vertex of the the processed segment */ |
2124 /* Clamping starting from first vertex of the processed segment */ |
2125 CLIPCLAMP(outXMin, outXMax, x1, y1, x2, y2, x3, y3, jint, res); |
2125 CLIPCLAMP(outXMin, outXMax, x1, y1, x2, y2, x3, y3, jint, res); |
2126 |
2126 |
2127 /* Clamping only by left boundary */ |
2127 /* Clamping only by left boundary */ |
2128 if (res == CRES_MIN_CLIPPED) { |
2128 if (res == CRES_MIN_CLIPPED) { |
2129 StoreFixedLine(hnd, x3, y3, x1, y1, pixelInfo, |
2129 StoreFixedLine(hnd, x3, y3, x1, y1, pixelInfo, |
2131 |
2131 |
2132 } else if (res == CRES_INVISIBLE) { |
2132 } else if (res == CRES_INVISIBLE) { |
2133 return; |
2133 return; |
2134 } |
2134 } |
2135 |
2135 |
2136 /* Clamping starting from last vertex of the the processed segment */ |
2136 /* Clamping starting from last vertex of the processed segment */ |
2137 CLIPCLAMP(outXMin, outXMax, x2, y2, x1, y1, x3, y3, jint, res); |
2137 CLIPCLAMP(outXMin, outXMax, x2, y2, x1, y1, x3, y3, jint, res); |
2138 |
2138 |
2139 /* Checking if there was a clip by right boundary */ |
2139 /* Checking if there was a clip by right boundary */ |
2140 lastClipped = lastClipped || (res == CRES_MAX_CLIPPED); |
2140 lastClipped = lastClipped || (res == CRES_MAX_CLIPPED); |
2141 |
2141 |