]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Programmed mode position adjustment
authorToni Wilen <twilen@winuae.net>
Mon, 20 Dec 2021 19:51:20 +0000 (21:51 +0200)
committerToni Wilen <twilen@winuae.net>
Mon, 20 Dec 2021 19:51:20 +0000 (21:51 +0200)
custom.cpp

index d2f6cb0da28cf80a0190e4609ea0b3bd86b1e3c4..970eb380cf4076aaca7543f3e82cb32643c32314 100644 (file)
@@ -5382,7 +5382,7 @@ void compute_framesync(void)
                int stop = hsyncendpos >> CCK_SHRES_SHIFT;
                int w;
 
-               int minhsync = 21;
+               int minhsync = 23;
 
                if (start > maxhpos) {
                        int hssize = stop - (start - maxhpos);
@@ -5400,7 +5400,7 @@ void compute_framesync(void)
 
                vidinfo->drawbuffer.inwidth = (w * 2) << res2;
 
-               vidinfo->drawbuffer.inxoffset = (stop * 2) << eres;
+               vidinfo->drawbuffer.inxoffset = ((stop + 7) * 2) << eres;
                
                vidinfo->drawbuffer.extrawidth = 0;
                vidinfo->drawbuffer.inwidth2 = vidinfo->drawbuffer.inwidth;