From 8ce19c2386b32f8be929f1930e739ba3429c1390 Mon Sep 17 00:00:00 2001 From: TC1995 Date: Wed, 21 Jun 2017 06:47:26 +0200 Subject: [PATCH] Fixed the accidental position of the 9ae8/9ae9 status in accel command 2. --- src/VIDEO/vid_s3.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/VIDEO/vid_s3.c b/src/VIDEO/vid_s3.c index 643b7f30c..5e569ce8e 100644 --- a/src/VIDEO/vid_s3.c +++ b/src/VIDEO/vid_s3.c @@ -1614,11 +1614,7 @@ void s3_accel_start(int count, int cpu_input, uint32_t mix_dat, uint32_t cpu_dat s3->accel.dest = s3->accel.cy * s3->width; } - if ((s3->accel.cmd & 0x100) && !cpu_input) return; /*Wait for data from CPU*/ - frgd_mix = (s3->accel.frgd_mix >> 5) & 3; - bkgd_mix = (s3->accel.bkgd_mix >> 5) & 3; - s3->status_9ae8 = 4; /*To avoid the spam from OS/2's drivers*/ if ((s3->accel.cmd & 0x100) && !cpu_input) @@ -1627,6 +1623,11 @@ void s3_accel_start(int count, int cpu_input, uint32_t mix_dat, uint32_t cpu_dat return; /*Wait for data from CPU*/ } + if ((s3->accel.cmd & 0x100) && !cpu_input) return; /*Wait for data from CPU*/ + + frgd_mix = (s3->accel.frgd_mix >> 5) & 3; + bkgd_mix = (s3->accel.bkgd_mix >> 5) & 3; + while (count-- && s3->accel.sy >= 0) { if (s3->accel.cx >= clip_l && s3->accel.cx <= clip_r &&