From c202a065ecdcbb02232c58ef3db8a8b42691a6cc Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 11 Jul 2022 18:24:11 +0200 Subject: [PATCH] Fixed 1280x1024x16bpp and 1600x1200x16bpp on the Elsa S3 Vision 964 and 968 cards. --- src/video/vid_s3.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/video/vid_s3.c b/src/video/vid_s3.c index 5f849bfbe..de238ec83 100644 --- a/src/video/vid_s3.c +++ b/src/video/vid_s3.c @@ -3067,6 +3067,10 @@ static void s3_recalctimings(svga_t *svga) break; case 16: svga->render = svga_render_16bpp_highres; + if ((s3->card_type == S3_ELSAWIN2KPROX_964) || (s3->card_type == S3_ELSAWIN2KPROX)) { + if (s3->width == 1280 || s3->width == 1600) + svga->hdisp <<= 1; + } if ((s3->chip != S3_VISION964) && (s3->card_type != S3_SPEA_MIRAGE_86C801) && (s3->card_type != S3_SPEA_MIRAGE_86C805)) { if (s3->chip == S3_86C928)