| 120 | |
| 121 | |
| 122 | static void imageScanline(gdImagePtr im, int x1, int x2, int y, int c) |
| 123 | { |
| 124 | int x; |
| 125 | |
| 126 | /* TO DO: This fix (adding if/then) was to address circumstances in the polygon fill code */ |
| 127 | /* where x2 < x1. There may be something wrong in that code, but at any rate this is safer. */ |
| 128 | |
| 129 | if(x1 < x2) |
| 130 | for(x=x1; x<=x2; x++) gdImageSetPixel(im, x, y, c); |
| 131 | else |
| 132 | for(x=x2; x<=x1; x++) gdImageSetPixel(im, x, y, c); |
| 133 | } |
| 134 | |
| 135 | /* |
| 136 | ** Polygon fill. Based on "Concave Polygon Scan Conversion" by Paul |
no outgoing calls
no test coverage detected