]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
islinetoggle wrong chipset type fix.
authorToni Wilen <twilen@winuae.net>
Mon, 17 May 2021 17:04:37 +0000 (20:04 +0300)
committerToni Wilen <twilen@winuae.net>
Mon, 17 May 2021 17:04:37 +0000 (20:04 +0300)
custom.cpp

index 22cab6ea262734b9b4bf43cd7cc651ad5c3d211a..0d74a64b70d0b08a6561683312a34d6aa7894b6a 100644 (file)
@@ -1334,9 +1334,9 @@ int get_bitplane_dma_rel(int hpos, int off)
 static int islinetoggle(void)
 {
        int linetoggle = 0;
-       if (!(beamcon0 & 0x0800) && !(beamcon0 & 0x0020) && aga_mode) {
+       if (!(beamcon0 & 0x0800) && !(beamcon0 & 0x0020) && ecs_agnus) {
                linetoggle = 1; // NTSC and !LOLDIS -> LOL toggles every line
-       } else if (!aga_mode && currprefs.ntscmode) {
+       } else if (!ecs_agnus && currprefs.ntscmode) {
                linetoggle = 1; // hardwired NTSC Agnus
        }
        return linetoggle;