From: Toni Wilen Date: Sun, 8 Sep 2019 06:35:39 +0000 (+0300) Subject: Keep also backup of BPLCON3 and BPLCON4 when switching chipset on the fly. X-Git-Tag: 4300~126 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=46368a340768a3a6971bf62171f51419bbb41674;p=francis%2Fwinuae.git Keep also backup of BPLCON3 and BPLCON4 when switching chipset on the fly. --- diff --git a/custom.cpp b/custom.cpp index fea226d5..d448bf7a 100644 --- a/custom.cpp +++ b/custom.cpp @@ -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;