(S)VGA renderer fixes.

This commit is contained in:
OBattler
2022-07-19 00:14:29 +02:00
parent a555b9312d
commit 33c5f9397e

View File

@@ -1139,7 +1139,7 @@ svga_render_15bpp_lowres(svga_t *svga)
svga->firstline_draw = svga->displine;
svga->lastline_draw = svga->displine;
if (svga->crtc[0x17] & 0x80) {
for (x = 0; x <= (svga->hdisp + svga->scrollcache); x += 4) {
dat = *(uint32_t *)(&svga->vram[(svga->ma + (x << 1)) & svga->vram_display_mask]);
p[(x << 1)] = p[(x << 1) + 1] = video_15to32[dat & 0xffff];