mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
restore defaults function + some refactoring
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@716 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
37807164d4
commit
d90f5bd748
5 changed files with 47 additions and 35 deletions
|
@ -341,15 +341,26 @@ static void vidResetMode(void)
|
|||
else gp2x_video_RGB_setscaling(0, (PicoOpt&0x100)&&!(Pico.video.reg[12]&1) ? 256 : 320, 240);
|
||||
}
|
||||
|
||||
void plat_video_toggle_renderer(void)
|
||||
void plat_video_toggle_renderer(int is_next, int is_menu)
|
||||
{
|
||||
/* alt, 16bpp, 8bpp */
|
||||
if (PicoOpt & POPT_ALT_RENDERER) {
|
||||
PicoOpt &= ~POPT_ALT_RENDERER;
|
||||
currentConfig.EmuOpt |= EOPT_16BPP;
|
||||
} else if (!(currentConfig.EmuOpt & EOPT_16BPP))
|
||||
PicoOpt |= POPT_ALT_RENDERER;
|
||||
else
|
||||
if (is_next)
|
||||
currentConfig.EmuOpt |= EOPT_16BPP;
|
||||
} else if (!(currentConfig.EmuOpt & EOPT_16BPP)) {
|
||||
if (is_next)
|
||||
PicoOpt |= POPT_ALT_RENDERER;
|
||||
else
|
||||
currentConfig.EmuOpt |= EOPT_16BPP;
|
||||
} else {
|
||||
currentConfig.EmuOpt &= ~EOPT_16BPP;
|
||||
if (!is_next)
|
||||
PicoOpt |= POPT_ALT_RENDERER;
|
||||
}
|
||||
|
||||
if (is_menu)
|
||||
return;
|
||||
|
||||
vidResetMode();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue