From: Toni Wilen Date: Sun, 7 Jan 2024 14:15:02 +0000 (+0200) Subject: Fix hardware emulated RTG boards split (screen dragging) horizontal offset. X-Git-Tag: 5200~81 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=4cecb4703e2f25d19a3d33c1952064c85ddfaae7;p=francis%2Fwinuae.git Fix hardware emulated RTG boards split (screen dragging) horizontal offset. --- diff --git a/pcem/vid_svga.cpp b/pcem/vid_svga.cpp index 7580986d..370482b0 100644 --- a/pcem/vid_svga.cpp +++ b/pcem/vid_svga.cpp @@ -695,7 +695,7 @@ int svga_poll(void *p) svga->ma = svga->maback = 0; svga->sc = 0; if (svga->attrregs[0x10] & 0x20) { - svga->scrollcache_dst = 0; + svga->scrollcache_dst = svga->scrollcache_dst_reset; svga->scrollcache_src = 0; } } @@ -841,6 +841,7 @@ int svga_poll(void *p) svga->scrollcache_dst = (8 - (scrollcache & 6)) + 24; } svga->scrollcache_src = 0; + svga->scrollcache_dst_reset = svga->scrollcache_dst; if (svga->adjust_panning) { svga->adjust_panning(svga); diff --git a/pcem/vid_svga.h b/pcem/vid_svga.h index 0bcd429a..2f17d137 100644 --- a/pcem/vid_svga.h +++ b/pcem/vid_svga.h @@ -76,7 +76,7 @@ typedef struct svga_t int sc; int linepos, vslines, linecountff, oddeven; int con, cursoron, blink; - int scrollcache_src, scrollcache_dst; + int scrollcache_src, scrollcache_dst, scrollcache_dst_reset; int char_width; int firstline, lastline;