]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Keep also backup of BPLCON3 and BPLCON4 when switching chipset on the fly.
authorToni Wilen <twilen@winuae.net>
Sun, 8 Sep 2019 06:35:39 +0000 (09:35 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 8 Sep 2019 06:35:39 +0000 (09:35 +0300)
custom.cpp

index fea226d5311fc565b12679514b92c0c2410f876f..d448bf7a7bd68f227ef8c6c54292b4285f94ce8c 100644 (file)
@@ -211,6 +211,7 @@ int syncbase;
 static int fmode_saved, fmode;
 uae_u16 beamcon0, new_beamcon0;
 static uae_u16 beamcon0_saved;
+static uae_u16 bplcon3_saved, bplcon4_saved;
 static bool varsync_changed;
 uae_u16 vtotal = MAXVPOS_PAL, htotal = MAXHPOS_PAL;
 static int maxvpos_stored, maxhpos_stored;
@@ -1049,7 +1050,11 @@ static void set_chipset_mode(void)
 {
        if (currprefs.chipset_mask & CSMASK_AGA) {
                fmode = fmode_saved;
+               bplcon3 = bplcon3_saved;
+               bplcon4 = bplcon4_saved;
        } else {
+               bplcon3_saved = bplcon3;
+               bplcon4_saved = bplcon4;
                fmode = 0;
                bplcon4 = 0x0011;
                bplcon3 = 0x0c00;