Skip to content

Commit

Permalink
[Gamecube/Wii] VDP status in 8-bit mode should not be changed when ch…
Browse files Browse the repository at this point in the history
…anging region
  • Loading branch information
ekeeke committed Sep 2, 2016
1 parent aa08436 commit 740f690
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions gx/gui/menu.c
Expand Up @@ -1632,16 +1632,13 @@ static void systemmenu ()
io_reg[0x00] = 0x80 | (region_code >> 1);
}

/* reinitialize VDP */
if (vdp_pal)
{
status |= 1;
lines_per_frame = 313;
}
else
/* reinitialize VDP timings */
lines_per_frame = vdp_pal ? 313 : 262;

/* reinitialize NTSC/PAL mode in VDP status */
if (system_hw & SYSTEM_MD)
{
status &= ~1;
lines_per_frame = 262;
status = (status & ~1) | vdp_pal;
}

/* reinitialize VC max value */
Expand Down

0 comments on commit 740f690

Please sign in to comment.