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:
Thomas Martitz 2009-05-05 08:43:32 +00:00
parent 16908adafe
commit b2b3f39403
3 changed files with 6 additions and 2 deletions

View file

@ -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. */

View file

@ -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);

View file

@ -24,6 +24,7 @@
#include "config.h"
bool _backlight_init(void);
void _backlight_on(void);
void _backlight_off(void);