mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Added minimal changes to allow Gigabeat and other ports with settable backlights to fade. Use define: HAVE_BACKLIGHT_SET_FADING (as opposed to the PWM).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11897 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
26496ce72f
commit
b3a0bcd6f3
1 changed files with 4 additions and 0 deletions
|
@ -290,6 +290,8 @@ static void _backlight_on(void)
|
|||
bl_dim_target = bl_dim_current = BL_PWM_COUNT;
|
||||
__backlight_on();
|
||||
}
|
||||
#elif defined(HAVE_BACKLIGHT_SET_FADING) && !defined(SIMULATOR)
|
||||
__backlight_dim(false);
|
||||
#else
|
||||
__backlight_on();
|
||||
#endif
|
||||
|
@ -308,6 +310,8 @@ static void _backlight_off(void)
|
|||
bl_dim_target = bl_dim_current = 0;
|
||||
__backlight_off();
|
||||
}
|
||||
#elif defined(HAVE_BACKLIGHT_SET_FADING) && !defined(SIMULATOR)
|
||||
__backlight_dim(true);
|
||||
#else
|
||||
__backlight_off();
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue