From ef869d7a3d374b2b826cf0a456103352dcb3d017 Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 11 Jul 2022 18:32:19 +0200 Subject: [PATCH] S3: Disable (S)VGA split screen functionality in enhanced modes, fixes 1600x1200 modes. --- src/video/vid_s3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/vid_s3.c b/src/video/vid_s3.c index de238ec83..6887c0b51 100644 --- a/src/video/vid_s3.c +++ b/src/video/vid_s3.c @@ -2899,6 +2899,8 @@ static void s3_recalctimings(svga_t *svga) if (svga->crtc[0x5e] & 0x04) svga->vblankstart |= 0x400; if (svga->crtc[0x5e] & 0x10) svga->vsyncstart |= 0x400; if (svga->crtc[0x5e] & 0x40) svga->split |= 0x400; + if (s3->accel.advfunc_cntl & 0x01) + svga->split = 0x7fff; if (svga->crtc[0x51] & 0x30) svga->rowoffset |= (svga->crtc[0x51] & 0x30) << 4; else if (svga->crtc[0x43] & 0x04) svga->rowoffset |= 0x100; }