From f71da53ee8ccd8074b7984bca1a9214569fb14ce Mon Sep 17 00:00:00 2001 From: OBattler Date: Sat, 8 Nov 2025 03:33:26 +0100 Subject: [PATCH] Matrox: Simplify some transc checks. --- src/video/vid_mga.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/video/vid_mga.c b/src/video/vid_mga.c index 5aadd71f6..68de89767 100644 --- a/src/video/vid_mga.c +++ b/src/video/vid_mga.c @@ -4492,7 +4492,7 @@ blit_line(mystique_t *mystique, int closed, int autoline) if (x >= mystique->dwgreg.cxleft && x <= mystique->dwgreg.cxright && mystique->dwgreg.ydst_lin >= mystique->dwgreg.ytop && mystique->dwgreg.ydst_lin <= mystique->dwgreg.ybot) { pattern_y = ((mystique->dwgreg.funcnt % (mystique->dwgreg.stylelen + 1)) >> 4) & 0x7; pattern_x = (mystique->dwgreg.funcnt % (mystique->dwgreg.stylelen + 1)) & 0xf; - if (!transc || (transc && (mystique->dwgreg.pattern[pattern_y][pattern_x]))) + if (!transc || (mystique->dwgreg.pattern[pattern_y][pattern_x])) switch (mystique->maccess_running & MACCESS_PWIDTH_MASK) { case MACCESS_PWIDTH_8: src = mystique->dwgreg.pattern[pattern_y][pattern_x] ? mystique->dwgreg.fcol : mystique->dwgreg.bcol; @@ -4813,7 +4813,7 @@ blit_trap(mystique_t *mystique) int pattern = mystique->dwgreg.pattern[yoff][xoff]; uint32_t dst; - if (!transc || (transc && pattern)) + if (!transc || pattern) switch (mystique->maccess_running & MACCESS_PWIDTH_MASK) { case MACCESS_PWIDTH_8: svga->vram[(mystique->dwgreg.ydst_lin + x_l) & mystique->vram_mask] = (pattern ? mystique->dwgreg.fcol : mystique->dwgreg.bcol) & 0xff; @@ -4885,7 +4885,7 @@ blit_trap(mystique_t *mystique) uint32_t dst; uint32_t old_dst; - if (!transc || (transc && pattern)) + if (!transc || pattern) switch (mystique->maccess_running & MACCESS_PWIDTH_MASK) { case MACCESS_PWIDTH_8: dst = svga->vram[(mystique->dwgreg.ydst_lin + x_l) & mystique->vram_mask];