Skip to content

Commit

Permalink
Reinstating dmd_antialias value
Browse files Browse the repository at this point in the history
  • Loading branch information
volkenborn committed Nov 20, 2024
1 parent 723cf61 commit ae5299e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wpc/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3228,15 +3228,15 @@ void core_dmd_render_internal(struct mame_bitmap *bitmap, const int x, const int
if ((ii & 1) && (jj & 1)) { // Corner point
const UINT32 lum = ((UINT32)dmdDotLum[DMD_OFS(pi, pj)] + (UINT32)dmdDotLum[DMD_OFS(pi+1, pj)] + (UINT32)dmdDotLum[DMD_OFS(pi, pj+1)] + (UINT32)dmdDotLum[DMD_OFS(pi+1, pj+1)]) / 6;
assert(0 <= lum && lum <= 255);
*line = lum == 0 ? 0 : DMD_PAL(lum);
*line = lum == 0 ? 0 : DMD_PAL(lum * pmoptions.dmd_antialias / 100);
} else if (ii & 1) { // Vertical side point
const UINT32 lum = ((UINT32)dmdDotLum[DMD_OFS(pi, pj+1)] + (UINT32)dmdDotLum[DMD_OFS(pi+1, pj+1)]) / 3;
assert(0 <= lum && lum <= 255);
*line = lum == 0 ? 0 : DMD_PAL(lum);
*line = lum == 0 ? 0 : DMD_PAL(lum * pmoptions.dmd_antialias / 100);
} else if (jj & 1) { // Horizontal side point
const UINT32 lum = ((UINT32)dmdDotLum[DMD_OFS(pi+1, pj)] + (UINT32)dmdDotLum[DMD_OFS(pi+1, pj+1)]) / 3;
assert(0 <= lum && lum <= 255);
*line = lum == 0 ? 0 : DMD_PAL(lum);
*line = lum == 0 ? 0 : DMD_PAL(lum * pmoptions.dmd_antialias / 100);
}
line++;
}
Expand Down

0 comments on commit ae5299e

Please sign in to comment.