Only export contrast if a target actually features contrast.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20579 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
842d2bc1c3
commit
1034dea00e
2 changed files with 5 additions and 0 deletions
|
@ -80,7 +80,9 @@ char *plugin_get_current_filename(void);
|
||||||
static const struct plugin_api rockbox_api = {
|
static const struct plugin_api rockbox_api = {
|
||||||
|
|
||||||
/* lcd */
|
/* lcd */
|
||||||
|
#ifdef HAVE_LCD_CONTRAST
|
||||||
lcd_set_contrast,
|
lcd_set_contrast,
|
||||||
|
#endif
|
||||||
lcd_update,
|
lcd_update,
|
||||||
lcd_clear_display,
|
lcd_clear_display,
|
||||||
lcd_getstringsize,
|
lcd_getstringsize,
|
||||||
|
|
|
@ -151,7 +151,10 @@ enum plugin_status {
|
||||||
struct plugin_api {
|
struct plugin_api {
|
||||||
|
|
||||||
/* lcd */
|
/* lcd */
|
||||||
|
|
||||||
|
#ifdef HAVE_LCD_CONTRAST
|
||||||
void (*lcd_set_contrast)(int x);
|
void (*lcd_set_contrast)(int x);
|
||||||
|
#endif
|
||||||
void (*lcd_update)(void);
|
void (*lcd_update)(void);
|
||||||
void (*lcd_clear_display)(void);
|
void (*lcd_clear_display)(void);
|
||||||
int (*lcd_getstringsize)(const unsigned char *str, int *w, int *h);
|
int (*lcd_getstringsize)(const unsigned char *str, int *w, int *h);
|
||||||
|
|
Loading…
Reference in a new issue