From 1034dea00e911bbefaca6902355f3f074f9b5ac1 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 30 Mar 2009 16:06:02 +0000 Subject: [PATCH] Only export contrast if a target actually features contrast. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20579 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 2 ++ apps/plugin.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/apps/plugin.c b/apps/plugin.c index c0cdbd8c27..b909a55f46 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -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, diff --git a/apps/plugin.h b/apps/plugin.h index d261ea5542..97c95122c4 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -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);