diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2008-05-18 00:14:34 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2008-05-18 00:14:34 +0000 |
| commit | 1f2df74079ecb399d33069a6f6ba9eb1744b0e8a (patch) | |
| tree | 09ba2f1fdc7a4a84abcb5643bdb16d4218aae23f /apps/plugins/mpegplayer/mpeg_settings.h | |
| parent | 18f13b149a4ce6d3b16c0b91de4d571d1860b66f (diff) | |
| download | rockbox-1f2df74079ecb399d33069a6f6ba9eb1744b0e8a.zip rockbox-1f2df74079ecb399d33069a6f6ba9eb1744b0e8a.tar.gz rockbox-1f2df74079ecb399d33069a6f6ba9eb1744b0e8a.tar.bz2 rockbox-1f2df74079ecb399d33069a6f6ba9eb1744b0e8a.tar.xz | |
MPEGPlayer quickie: add an option to set the backlight brightness to a plugin-specified value when playing video or interacting. Nice when one likes a dim backlight normally but that isn't sufficient when viewing video for instance. Suggested in FS#8417 in addition to my own desire for this.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17563 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer/mpeg_settings.h')
| -rw-r--r-- | apps/plugins/mpegplayer/mpeg_settings.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/apps/plugins/mpegplayer/mpeg_settings.h b/apps/plugins/mpegplayer/mpeg_settings.h index 1557ff4..d00dc19 100644 --- a/apps/plugins/mpegplayer/mpeg_settings.h +++ b/apps/plugins/mpegplayer/mpeg_settings.h @@ -1,7 +1,7 @@ #include "plugin.h" -#define SETTINGS_VERSION 4 +#define SETTINGS_VERSION 5 #define SETTINGS_MIN_VERSION 1 #define SETTINGS_FILENAME "mpegplayer.cfg" @@ -22,6 +22,9 @@ enum mpeg_option_id MPEG_OPTION_DISPLAY_FPS, MPEG_OPTION_LIMIT_FPS, MPEG_OPTION_SKIP_FRAMES, +#ifdef HAVE_BACKLIGHT_BRIGHTNESS + MPEG_OPTION_BACKLIGHT_BRIGHTNESS, +#endif }; enum mpeg_audio_option_id @@ -78,6 +81,10 @@ struct mpeg_settings { int crossfeed; int equalizer; int dithering; + /* Backlight options */ +#ifdef HAVE_BACKLIGHT_BRIGHTNESS + int backlight_brightness; +#endif }; extern struct mpeg_settings settings; @@ -97,3 +104,7 @@ void mpeg_menu_sysevent_handle(void); void init_settings(const char* filename); void save_settings(void); + +#ifdef HAVE_BACKLIGHT_BRIGHTNESS +void mpeg_backlight_update_brightness(int value); +#endif |