From 424c5f207f1d72261984d21288ba931e09de7015 Mon Sep 17 00:00:00 2001 From: kub Date: Wed, 31 Jul 2024 23:24:30 +0200 Subject: [PATCH] core, fix copy-paste bug (vcounter in im2) --- pico/pico_int.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pico/pico_int.h b/pico/pico_int.h index 4caa800d..7875b8a0 100644 --- a/pico/pico_int.h +++ b/pico/pico_int.h @@ -946,7 +946,7 @@ static __inline void VideoWriteVRAM(u32 a, u16 d) static __inline u8 PicoVideoGetV(int scanline, int maywrap) { if (maywrap && scanline >= Pico.t.vcnt_wrap) scanline -= Pico.t.vcnt_adj; - if ((Pico.video.reg[12]&6) == 6) scanline = (scanline<<1) | 1; + if ((Pico.video.reg[12]&6) == 6) scanline = (scanline<<1)|(scanline>>8); return scanline; } -- 2.39.5