mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Remove an #ifdef SIMULATOR in favor of using a stub
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20853 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
16908adafe
commit
b2b3f39403
3 changed files with 6 additions and 2 deletions
|
@ -725,7 +725,6 @@ void backlight_init(void)
|
|||
{
|
||||
queue_init(&backlight_queue, true);
|
||||
|
||||
#ifndef SIMULATOR
|
||||
if (_backlight_init())
|
||||
{
|
||||
#if (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_PWM)
|
||||
|
@ -734,7 +733,6 @@ void backlight_init(void)
|
|||
bl_dim_fraction = (BL_PWM_COUNT<<16);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
/* Leave all lights as set by the bootloader here. The settings load will
|
||||
* call the appropriate backlight_set_*() functions, only changing light
|
||||
* status if necessary. */
|
||||
|
|
|
@ -30,6 +30,11 @@ extern void lcd_awake(void);
|
|||
/* in uisimulator/sdl/lcd-bitmap.c and lcd-charcell.c */
|
||||
extern void sim_backlight(int value);
|
||||
|
||||
bool _backlight_init(void)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void _backlight_on(void)
|
||||
{
|
||||
sim_backlight(100);
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
bool _backlight_init(void);
|
||||
void _backlight_on(void);
|
||||
void _backlight_off(void);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue