From: kub Date: Wed, 31 Jul 2024 21:24:30 +0000 (+0200) Subject: core, fix copy-paste bug (vcounter in im2) X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=424c5f207f1d72261984d21288ba931e09de7015;p=picodrive.git core, fix copy-paste bug (vcounter in im2) --- 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; }