Force horizontal pixel doubling for 320x400/320x480 modes when possible

This commit is contained in:
Cacodemon345
2025-06-28 01:12:49 +06:00
parent 6a8eaf507c
commit b21c5f1294
4 changed files with 21 additions and 5 deletions

View File

@@ -694,7 +694,7 @@ svga_render_indexed_gfx(svga_t *svga, bool highres, bool combine8bits)
- HT-216 (+ other Video7 chipsets?) has 0x3C4.0xC8 bit 4 which, when set to 1, loads
bytes directly, bypassing the shifters.
*/
const bool highres8bpp = combine8bits && highres;
const bool highres8bpp = (combine8bits && highres) || svga->force_shifter_bypass;
const bool dwordload = ((svga->seqregs[0x01] & 0x10) != 0);
const bool wordload = ((svga->seqregs[0x01] & 0x04) != 0) && !dwordload;