aboutsummaryrefslogtreecommitdiff
path: root/source/nds/gui.c
diff options
context:
space:
mode:
authorNebuleon Fumika2013-02-01 00:36:51 -0500
committerNebuleon Fumika2013-02-01 00:36:51 -0500
commit60f6ffcc701c4175e31d90f950fb34f6b07a1712 (patch)
tree4ca55d1d8093687c9c5ec12be8bba3313eb83fd7 /source/nds/gui.c
parentf385752705de73b04cbbda735a71f14c19e241a6 (diff)
downloadsnes9x2005-60f6ffcc701c4175e31d90f950fb34f6b07a1712.tar.gz
snes9x2005-60f6ffcc701c4175e31d90f950fb34f6b07a1712.tar.bz2
snes9x2005-60f6ffcc701c4175e31d90f950fb34f6b07a1712.zip
When starting CATSFC, assume the backlights are both on, so don't delay 100 milliseconds and set both backlights to on.
Diffstat (limited to 'source/nds/gui.c')
-rw-r--r--source/nds/gui.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/nds/gui.c b/source/nds/gui.c
index fd9007b..b529b9f 100644
--- a/source/nds/gui.c
+++ b/source/nds/gui.c
@@ -1682,7 +1682,7 @@ unsigned int frame_interval;
/*--------------------------------------------------------
Main Menu
--------------------------------------------------------*/
-u32 menu(u16 *screen)
+u32 menu(u16 *screen, bool8 FirstInvocation)
{
gui_action_type gui_action;
u32 i;
@@ -3568,9 +3568,11 @@ u32 menu(u16 *screen)
//----------------------------------------------------------------------------//
// Menu Start
ds2_setCPUclocklevel(0);
- mdelay(100); // to prevent ds2_setBacklight() from crashing
- ds2_setBacklight(3);
-
+ if (!FirstInvocation)
+ { // assume that the backlight is already at 3 when the emulator starts
+ mdelay(100); // to prevent ds2_setBacklight() from crashing
+ ds2_setBacklight(3);
+ }
wait_Allkey_release(0);
bg_screenp= (u16*)malloc(256*192*2);