From 2df886b1d89c1fe249bb0e544884b956bb7535c6 Mon Sep 17 00:00:00 2001 From: SarahW Date: Sun, 11 Feb 2018 15:36:59 +0000 Subject: [PATCH] Only offset TGUI9440 blitter CPU data when CPU source is mono. Fixes some corruption in Windows 3.x. --- src/vid_tgui9440.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vid_tgui9440.c b/src/vid_tgui9440.c index de748b0..f2b2134 100644 --- a/src/vid_tgui9440.c +++ b/src/vid_tgui9440.c @@ -1068,7 +1068,7 @@ void tgui_accel_command(int count, uint32_t cpu_dat, tgui_t *tgui) if (tgui->accel.bpp == 0) trans_col &= 0xff; - if (count != -1 && !tgui->accel.x) + if (count != -1 && !tgui->accel.x && (tgui->accel.flags & TGUI_SRCMONO)) { count -= tgui->accel.offset; cpu_dat <<= tgui->accel.offset;