mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-05 14:57:46 -04:00
giz renderers and stuff
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@261 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
1378d18bd6
commit
8ede36b95e
2 changed files with 4 additions and 4 deletions
|
@ -446,12 +446,13 @@ int emu_ReadConfig(int game, int no_defaults)
|
||||||
if (currentConfig.CPUclock < 10 || currentConfig.CPUclock > 4096) currentConfig.CPUclock = 200;
|
if (currentConfig.CPUclock < 10 || currentConfig.CPUclock > 4096) currentConfig.CPUclock = 200;
|
||||||
if (currentConfig.gamma < 10 || currentConfig.gamma > 300) currentConfig.gamma = 100;
|
if (currentConfig.gamma < 10 || currentConfig.gamma > 300) currentConfig.gamma = 100;
|
||||||
if (currentConfig.volume < 0 || currentConfig.volume > 99) currentConfig.volume = 50;
|
if (currentConfig.volume < 0 || currentConfig.volume > 99) currentConfig.volume = 50;
|
||||||
|
#ifdef __GP2X__
|
||||||
// if volume keys are unbound, bind them to volume control
|
// if volume keys are unbound, bind them to volume control
|
||||||
if (!currentConfig.KeyBinds[23] && !currentConfig.KeyBinds[22]) {
|
if (!currentConfig.KeyBinds[23] && !currentConfig.KeyBinds[22]) {
|
||||||
currentConfig.KeyBinds[23] = 1<<29; // vol up
|
currentConfig.KeyBinds[23] = 1<<29; // vol up
|
||||||
currentConfig.KeyBinds[22] = 1<<30; // vol down
|
currentConfig.KeyBinds[22] = 1<<30; // vol down
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if (bread > 0) config_slot_current = config_slot;
|
if (bread > 0) config_slot_current = config_slot;
|
||||||
return (bread > 0); // == sizeof(currentConfig));
|
return (bread > 0); // == sizeof(currentConfig));
|
||||||
}
|
}
|
||||||
|
|
|
@ -229,10 +229,9 @@ void osd_text(int x, int y, const char *text)
|
||||||
|
|
||||||
static void cd_leds(void)
|
static void cd_leds(void)
|
||||||
{
|
{
|
||||||
// mmu problems?
|
|
||||||
// static
|
// static
|
||||||
int old_reg;
|
int old_reg;
|
||||||
// if (!((Pico_mcd->s68k_regs[0] ^ old_reg) & 3)) return; // no change
|
// if (!((Pico_mcd->s68k_regs[0] ^ old_reg) & 3)) return; // no change // mmu hack problems?
|
||||||
old_reg = Pico_mcd->s68k_regs[0];
|
old_reg = Pico_mcd->s68k_regs[0];
|
||||||
|
|
||||||
if ((PicoOpt&0x10)||!(currentConfig.EmuOpt&0x80)) {
|
if ((PicoOpt&0x10)||!(currentConfig.EmuOpt&0x80)) {
|
||||||
|
@ -252,7 +251,7 @@ static void cd_leds(void)
|
||||||
unsigned int col_r = (old_reg & 1) ? 0xc000c000 : 0;
|
unsigned int col_r = (old_reg & 1) ? 0xc000c000 : 0;
|
||||||
*p++ = col_g; *p++ = col_g; p+=2; *p++ = col_r; *p++ = col_r; p += 320/2 - 12/2;
|
*p++ = col_g; *p++ = col_g; p+=2; *p++ = col_r; *p++ = col_r; p += 320/2 - 12/2;
|
||||||
*p++ = col_g; *p++ = col_g; p+=2; *p++ = col_r; *p++ = col_r; p += 320/2 - 12/2;
|
*p++ = col_g; *p++ = col_g; p+=2; *p++ = col_r; *p++ = col_r; p += 320/2 - 12/2;
|
||||||
*p++ = col_g; *p++ = col_g; p+=2; *p++ = col_r; *p++ = col_r; p += 320/2 - 12/2;
|
*p++ = col_g; *p++ = col_g; p+=2; *p++ = col_r; *p++ = col_r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue