mirror of
https://github.com/n64dev/cen64.git
synced 2024-06-22 05:52:37 -04:00
vi: Handle (non-)interlaced modes better.
I accidentally flipped the logic for a bit; if the LSB of VI_V_SYNC_REG is clear, then interlaced mode is enabled and vise-versa.
This commit is contained in:
parent
4564751193
commit
6f6f7698e7
|
@ -50,10 +50,8 @@ int read_vi_regs(void *opaque, uint32_t address, uint32_t *word) {
|
|||
|
||||
// Interlaced fields should get the current field number.
|
||||
// Non-interlaced modes should always get a constant field.
|
||||
if (vi->regs[VI_V_SYNC_REG] & 0x1)
|
||||
if (!(vi->regs[VI_V_SYNC_REG] & 0x1))
|
||||
vi->regs[VI_CURRENT_REG] |= vi->field;
|
||||
else
|
||||
vi->regs[VI_CURRENT_REG] |= 1;
|
||||
}
|
||||
|
||||
*word = vi->regs[reg];
|
||||
|
|
Loading…
Reference in a new issue