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
1 changed files with 5 additions and 1 deletions

View File

@ -355,7 +355,11 @@ private:
// for the first pixel, and the increment for // for the first pixel, and the increment for
// further pixels on the same scanline // further pixels on the same scanline
// TODO: check how coverage interacts with line gaps, I think it's correct though? // 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 (Negative) startx = xlen - startx;
if (side) startx = startx - *length + 1; if (side) startx = startx - *length + 1;