1
0
Fork 0
forked from len0rd/rockbox

Enable backlight brightness in simulator

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24042 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Maurus Cuelenaere 2009-12-17 13:44:09 +00:00
parent 6c683d449e
commit 5d96c3ba71
3 changed files with 10 additions and 9 deletions

View file

@ -149,11 +149,7 @@ void sim_backlight(int value)
#endif
}
#else /* LCD_DEPTH > 8 */
if (value > 0) {
SDL_SetAlpha(lcd_surface, 0, SDL_ALPHA_OPAQUE); /* full on */
} else {
SDL_SetAlpha(lcd_surface, SDL_SRCALPHA, BACKLIGHT_OFF_ALPHA);
}
SDL_SetAlpha(lcd_surface, SDL_SRCALPHA, (value * 255) / 100);
#endif /* LCD_DEPTH */
sdl_gui_update(lcd_surface, 0, 0, SIM_LCD_WIDTH, SIM_LCD_HEIGHT,