Please test this code:
var x[4] := [2, 6, 6, 2];
var y[4] := [2, 2, 6, 6];
gfx_PolygonFilled(4, x, y, RED);
It is supposed to produce a 5x5-pixel square located two pixels away from upper left corner in either direction.
Instead, it results in a 5x4-pixel rectangle, the first (upper) line of pixels missing.
Setting var yIN[4] := [1, 1, 6, 6]; does produce the desired result, but then the entire upper line of pixels (with y = 0) becomes inaccessible for this function...
Well, I have also tried var yIN[4] := [-1, -1, 5, 5];, and it works!
But, nevertheless, setting (x2 - x1) = (y2 - y1) must produce a square. So this function has a bug somewhere.
var x[4] := [2, 6, 6, 2];
var y[4] := [2, 2, 6, 6];
gfx_PolygonFilled(4, x, y, RED);
It is supposed to produce a 5x5-pixel square located two pixels away from upper left corner in either direction.
Instead, it results in a 5x4-pixel rectangle, the first (upper) line of pixels missing.
Setting var yIN[4] := [1, 1, 6, 6]; does produce the desired result, but then the entire upper line of pixels (with y = 0) becomes inaccessible for this function...
Well, I have also tried var yIN[4] := [-1, -1, 5, 5];, and it works!
But, nevertheless, setting (x2 - x1) = (y2 - y1) must produce a square. So this function has a bug somewhere.
Comment