mirror of
https://github.com/FunKey-Project/picodrive-irixxxx.git
synced 2026-05-01 18:39:29 +02: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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user