S3: Allow gamma correction in Trio3D/2X

This commit is contained in:
Cacodemon345
2025-12-27 17:15:45 +06:00
parent 2aaf157226
commit 9bcf3c0c9e

View File

@@ -828,6 +828,7 @@ s3_virge_recalctimings(svga_t *svga)
if (virge->chip >= S3_TRIO3D2X) {
svga_set_ramdac_type(svga, (svga->seqregs[0x1b] & 0x10) ? RAMDAC_8BIT : RAMDAC_6BIT);
svga->lut_map = !!(svga->seqregs[0x1b] & 0x8);
}
if (!svga->scrblank && svga->attr_palette_enable && (svga->crtc[0x43] & 0x80)) {
/* TODO: In case of bug reports, disable 9-dots-wide character clocks in graphics modes. */
@@ -5377,6 +5378,7 @@ s3_virge_init(const device_t *info)
s3_virge_hwcursor_draw,
s3_virge_overlay_draw);
virge->svga.hwcursor.cur_ysize = 64;
virge->svga.conv_16to32 = tvp3026_conv_16to32;
if (bios_fn != NULL) {
if (virge->type == S3_VIRGE_GX2)