From: Toni Wilen Date: Sun, 24 Jul 2022 17:48:17 +0000 (+0300) Subject: Ultra overscan mode positioning fix. X-Git-Tag: 41000~184 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=7b85da4fdf5000d85dce6cc19b5d22c8bb5b66f8;p=francis%2Fwinuae.git Ultra overscan mode positioning fix. --- diff --git a/custom.cpp b/custom.cpp index 57b01a42..d5500908 100644 --- a/custom.cpp +++ b/custom.cpp @@ -6512,14 +6512,14 @@ static void init_hz(bool checkvposw) maxhpos_display += EXTRAWIDTH_ULTRA; maxvpos_display_vsync += 2; minfirstline = 0; - hsstop_detect = hsyncstartpos_start_cycles - 1; + hsstop_detect = hsyncstartpos_start_cycles - 2; } } else { if (currprefs.gfx_overscanmode == OVERSCANMODE_ULTRA) { maxhpos_display += EXTRAWIDTH_ULTRA; maxvpos_display_vsync += 2; - hsstop_detect = 8; + hsstop_detect = 16; minfirstline = 0; } } @@ -14916,7 +14916,7 @@ uae_u32 wait_cpu_cycle_read(uaecptr addr, int mode) #endif regs.chipset_latch_rw = regs.chipset_latch_read = v; - + x_do_cycles_post(CYCLE_UNIT, v); return v; @@ -14973,7 +14973,7 @@ uae_u32 wait_cpu_cycle_read_ce020(uaecptr addr, int mode) #endif regs.chipset_latch_rw = regs.chipset_latch_read = v; - + x_do_cycles_post(CYCLE_UNIT, v); return v; @@ -15017,7 +15017,7 @@ void wait_cpu_cycle_write(uaecptr addr, int mode, uae_u32 v) } regs.chipset_latch_rw = regs.chipset_latch_write = v; - + x_do_cycles_post(CYCLE_UNIT, v); } @@ -15055,7 +15055,7 @@ void wait_cpu_cycle_write_ce020(uaecptr addr, int mode, uae_u32 v) } regs.chipset_latch_rw = regs.chipset_latch_write = v; - + // chipset buffer latches the write, CPU does // not need to wait for the chipset cycle to finish. x_do_cycles_post(cpucycleunit, v);