remove an optimization for swapped polygons

why did i optimize swapped polygons?
they're not that common.
This commit is contained in:
Jaklyy 2023-12-10 15:52:28 -05:00
parent 3facbe90c9
commit 3268f94f4b
1 changed files with 4 additions and 7 deletions

View File

@ -352,13 +352,10 @@ private:
{ {
// only do length calc for right side when swapped as it's // only do length calc for right side when swapped as it's
// only needed for aa calcs, as actual line spans are broken // only needed for aa calcs, as actual line spans are broken
if (!swapped || side) if (side ^ Negative)
{ *length = (dx >> 18) - ((dx-Increment) >> 18);
if (side ^ Negative) else
*length = (dx >> 18) - ((dx-Increment) >> 18); *length = ((dx+Increment) >> 18) - (dx >> 18);
else
*length = ((dx+Increment) >> 18) - (dx >> 18);
}
// for X-major edges, we return the coverage // for X-major edges, we return the coverage
// for the first pixel, and the increment for // for the first pixel, and the increment for