From 1955def798cef3b776679b96ac9f545578e78a54 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sat, 4 Jun 2022 02:21:59 +0200 Subject: [PATCH] Fixed 1280x1024x8bpp modes on the Elsa S3 Vision 964 and 968. --- src/video/vid_s3.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video/vid_s3.c b/src/video/vid_s3.c index 406f6a20e..371d81ce4 100644 --- a/src/video/vid_s3.c +++ b/src/video/vid_s3.c @@ -2984,6 +2984,9 @@ static void s3_recalctimings(svga_t *svga) (s3->chip != S3_TRIO64) && (s3->chip != S3_VISION964) && (s3->chip != S3_VISION968)) { if (s3->width == 1280 || s3->width == 1600) svga->hdisp <<= 1; + } else if ((s3->card_type == S3_ELSAWIN2KPROX_964) || (s3->card_type == S3_ELSAWIN2KPROX)) { + if (s3->width == 1280 || s3->width == 1600) + svga->hdisp <<= 1; } else if (s3->card_type == S3_SPEA_MERCURY_P64V) { if (s3->width == 1280 || s3->width == 1600) svga->hdisp <<= 1;