From dded2161378bdf0ead156f47f2473872854fc129 Mon Sep 17 00:00:00 2001 From: Nebuleon Fumika Date: Sat, 26 Jan 2013 20:31:11 -0500 Subject: Turn off the lower screen's backlight when returning from suspend during emulation. --- source/nds/entry.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source') diff --git a/source/nds/entry.cpp b/source/nds/entry.cpp index 13486b0..45360a8 100644 --- a/source/nds/entry.cpp +++ b/source/nds/entry.cpp @@ -1081,6 +1081,10 @@ unsigned int S9xReadJoypad (int which1) mdelay(1); } while (inputdata.key & KEY_LID); ds2_wakeup(); + // Before starting to emulate again, turn off the lower + // screen's backlight. + mdelay(100); // needed to avoid ds2_setBacklight crashing + ds2_setBacklight(2); set_cpu_clock(clock_speed_number); } -- cgit v1.2.3