From 8a90de40bc65a7036afd40743f116199c9cc0410 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sat, 22 Jun 2024 17:44:45 +0200 Subject: [PATCH] Matrox: Fix MSITUTOR, fixes #4554. --- src/video/vid_mga.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/video/vid_mga.c b/src/video/vid_mga.c index fdbb2e411..2d71d36f3 100644 --- a/src/video/vid_mga.c +++ b/src/video/vid_mga.c @@ -5328,6 +5328,15 @@ blit_texture_trap(mystique_t *mystique) } break; + case (TEXCTL_STRANS | TEXCTL_ITRANS | TEXCTL_DECALCKEY): + if (!ctransp) + goto skip_pixel; + + tex_r = i_r; + tex_g = i_g; + tex_b = i_b; + break; + default: fatal("Bad TEXCTL %08x %08x\n", mystique->dwgreg.texctl, mystique->dwgreg.texctl & (TEXCTL_TMODULATE | TEXCTL_STRANS | TEXCTL_ITRANS | TEXCTL_DECALCKEY)); }