The forgotten changes to video/vid_svga.c.

This commit is contained in:
OBattler
2024-05-03 11:18:28 +02:00
parent 3f6126f72d
commit 656591d385

View File

@@ -1130,9 +1130,9 @@ svga_poll(void *priv)
svga->linecountff = 0;
svga->sc = 0;
svga->maback += (svga->rowoffset << 3);
svga->maback += (svga->adv_flags & FLAG_NO_SHIFT3) ? svga->rowoffset : (svga->rowoffset << 3);
if (svga->interlace)
svga->maback += (svga->rowoffset << 3);
svga->maback += (svga->adv_flags & FLAG_NO_SHIFT3) ? svga->rowoffset : (svga->rowoffset << 3);
svga->maback &= svga->vram_display_mask;
svga->ma = svga->maback;
@@ -1237,8 +1237,10 @@ svga_poll(void *priv)
svga->ma = svga->maback = svga->ma_latch + svga->hblank_sub;
svga->ca = ((svga->crtc[0xe] << 8) | svga->crtc[0xf]) + ((svga->crtc[0xb] & 0x60) >> 5) + svga->ca_adj;
svga->ma = (svga->ma << 2);
svga->maback = (svga->maback << 2);
if (!(svga->adv_flags & FLAG_NO_SHIFT3)) {
svga->ma = (svga->ma << 2);
svga->maback = (svga->maback << 2);
}
svga->ca = (svga->ca << 2);
if (svga->vsync_callback)
@@ -1341,6 +1343,7 @@ svga_init(const device_t *info, svga_t *svga, void *priv, int memsize,
svga->hwcursor_draw = hwcursor_draw;
svga->overlay_draw = overlay_draw;
svga->conv_16to32 = svga_conv_16to32;
svga->render = svga_render_blank;
svga->hwcursor.cur_xsize = svga->hwcursor.cur_ysize = 32;