]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix hardware emulated RTG boards split (screen dragging) horizontal offset.
authorToni Wilen <twilen@winuae.net>
Sun, 7 Jan 2024 14:15:02 +0000 (16:15 +0200)
committerToni Wilen <twilen@winuae.net>
Sun, 7 Jan 2024 14:15:02 +0000 (16:15 +0200)
pcem/vid_svga.cpp
pcem/vid_svga.h

index 7580986dd48f1d130a7a8c4d6d5ffa86af65cc3c..370482b0722f9ded04189243adedc39d97fd08b0 100644 (file)
@@ -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);
index 0bcd429a103ac45151b7cd0d36c3e140b1776541..2f17d137e7225f1a665ed5a832be716c67566c0d 100644 (file)
@@ -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;