Minor bugfix for lazyusf

CQTexperiment
Chris Moeller 2014-11-23 23:46:10 -08:00
parent edf24c73d0
commit 1f3939c363
1 changed files with 2 additions and 1 deletions

View File

@ -489,6 +489,7 @@ void StartEmulationFromSave ( usf_state_t * state, void * savestate ) {
void RefreshScreen (usf_state_t * state){
if (state->OLD_VI_V_SYNC_REG != VI_V_SYNC_REG)
{
state->OLD_VI_V_SYNC_REG = VI_V_SYNC_REG;
if (VI_V_SYNC_REG == 0)
{
state->VI_INTR_TIME = 500000;
@ -496,7 +497,7 @@ void RefreshScreen (usf_state_t * state){
else
{
state->VI_INTR_TIME = (VI_V_SYNC_REG + 1) * 1500;
if ((VI_V_SYNC_REG % 1) != 0)
if ((VI_V_SYNC_REG & 1) != 0)
{
state->VI_INTR_TIME -= 38;
}