mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
core, optimize vcounter handling
This commit is contained in:
parent
7021622153
commit
46b4c1d322
3 changed files with 13 additions and 13 deletions
|
@ -916,9 +916,9 @@ static __inline void VideoWriteVRAM(u32 a, u16 d)
|
|||
UpdateSAT(a, d);
|
||||
}
|
||||
|
||||
static __inline u8 PicoVideoGetV(int scanline)
|
||||
static __inline u8 PicoVideoGetV(int scanline, int maywrap)
|
||||
{
|
||||
if (scanline >= Pico.t.vcnt_wrap) scanline -= Pico.t.vcnt_adj;
|
||||
if (maywrap && scanline >= Pico.t.vcnt_wrap) scanline -= Pico.t.vcnt_adj;
|
||||
if ((Pico.video.reg[12]&6) == 6) scanline = (scanline<<1) | 1;
|
||||
return scanline;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue