From 38fb084124c874babd7207c1fa85f16fe67f1b7c Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 16 Jul 2023 03:46:54 +0200 Subject: [PATCH] Fixed a bug in the Mach8/32 code. --- src/video/vid_ati_mach8.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/vid_ati_mach8.c b/src/video/vid_ati_mach8.c index c8996e0eb..035f1cef0 100644 --- a/src/video/vid_ati_mach8.c +++ b/src/video/vid_ati_mach8.c @@ -1864,9 +1864,9 @@ mach_accel_start(int cmd_type, int cpu_input, int count, uint32_t mix_dat, uint3 if (mach->accel.dest_y_end >= 0x600) mach->accel.dy_end |= ~0x5ff; - if (mach->accel.dy_end > mach->accel.dy_end) { + if (mach->accel.dy_end > mach->accel.dy_start) { mach->accel.stepy = 1; - } else if (mach->accel.dy_end < mach->accel.dy_end) { + } else if (mach->accel.dy_end < mach->accel.dy_start) { mach->accel.stepy = -1; } else { mach->accel.stepy = 0;