diff options
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 1557ff433e..d00dc197cb 100644 --- a/apps/plugins/mpegplayer/mpeg_settings.h +++ b/apps/plugins/mpegplayer/mpeg_settings.h | |||
@@ -1,7 +1,7 @@ | |||
1 | 1 | ||
2 | #include "plugin.h" | 2 | #include "plugin.h" |
3 | 3 | ||
4 | #define SETTINGS_VERSION 4 | 4 | #define SETTINGS_VERSION 5 |
5 | #define SETTINGS_MIN_VERSION 1 | 5 | #define SETTINGS_MIN_VERSION 1 |
6 | #define SETTINGS_FILENAME "mpegplayer.cfg" | 6 | #define SETTINGS_FILENAME "mpegplayer.cfg" |
7 | 7 | ||
@@ -22,6 +22,9 @@ enum mpeg_option_id | |||
22 | MPEG_OPTION_DISPLAY_FPS, | 22 | MPEG_OPTION_DISPLAY_FPS, |
23 | MPEG_OPTION_LIMIT_FPS, | 23 | MPEG_OPTION_LIMIT_FPS, |
24 | MPEG_OPTION_SKIP_FRAMES, | 24 | MPEG_OPTION_SKIP_FRAMES, |
25 | #ifdef HAVE_BACKLIGHT_BRIGHTNESS | ||
26 | MPEG_OPTION_BACKLIGHT_BRIGHTNESS, | ||
27 | #endif | ||
25 | }; | 28 | }; |
26 | 29 | ||
27 | enum mpeg_audio_option_id | 30 | enum mpeg_audio_option_id |
@@ -78,6 +81,10 @@ struct mpeg_settings { | |||
78 | int crossfeed; | 81 | int crossfeed; |
79 | int equalizer; | 82 | int equalizer; |
80 | int dithering; | 83 | int dithering; |
84 | /* Backlight options */ | ||
85 | #ifdef HAVE_BACKLIGHT_BRIGHTNESS | ||
86 | int backlight_brightness; | ||
87 | #endif | ||
81 | }; | 88 | }; |
82 | 89 | ||
83 | extern struct mpeg_settings settings; | 90 | extern struct mpeg_settings settings; |
@@ -97,3 +104,7 @@ void mpeg_menu_sysevent_handle(void); | |||
97 | 104 | ||
98 | void init_settings(const char* filename); | 105 | void init_settings(const char* filename); |
99 | void save_settings(void); | 106 | void save_settings(void); |
107 | |||
108 | #ifdef HAVE_BACKLIGHT_BRIGHTNESS | ||
109 | void mpeg_backlight_update_brightness(int value); | ||
110 | #endif | ||