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:
Thomas Martitz 2009-03-30 16:06:02 +00:00
parent 842d2bc1c3
commit 1034dea00e
2 changed files with 5 additions and 0 deletions

View file

@ -80,7 +80,9 @@ char *plugin_get_current_filename(void);
static const struct plugin_api rockbox_api = {
/* lcd */
#ifdef HAVE_LCD_CONTRAST
lcd_set_contrast,
#endif
lcd_update,
lcd_clear_display,
lcd_getstringsize,

View file

@ -151,7 +151,10 @@ enum plugin_status {
struct plugin_api {
/* lcd */
#ifdef HAVE_LCD_CONTRAST
void (*lcd_set_contrast)(int x);
#endif
void (*lcd_update)(void);
void (*lcd_clear_display)(void);
int (*lcd_getstringsize)(const unsigned char *str, int *w, int *h);