fix anti-aliasing

kinda lazily though, will improve when it's time to rework aa
This commit is contained in:
Jaklyy 2024-08-02 14:39:55 -04:00
parent 5ca5c1a4a1
commit c2abc1050c

View File

@ -355,7 +355,11 @@ private:
// for the first pixel, and the increment for
// further pixels on the same scanline
// TODO: check how coverage interacts with line gaps, I think it's correct though?
s32 startx = dx >> 18;
s32 startx = dx;
if (side ^ Negative) startx += Increment;
startx >>= 18;
//s32 startcov = (startx * ylen) /9 xlen;
if (Negative) startx = xlen - startx;
if (side) startx = startx - *length + 1;