diff --git a/apps/plugin.c b/apps/plugin.c index 15a7e9127f..aa6b65a34a 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -74,7 +74,6 @@ static const struct plugin_api rockbox_api = { /* lcd */ lcd_set_contrast, lcd_update, - lcd_update_rect, lcd_clear_display, lcd_setmargins, lcd_getstringsize, @@ -93,6 +92,7 @@ static const struct plugin_api rockbox_api = { lcd_double_height, #else &lcd_framebuffer[0][0], + lcd_update_rect, lcd_set_drawmode, lcd_get_drawmode, lcd_setfont, diff --git a/apps/plugin.h b/apps/plugin.h index 30c04ce76c..1563ed3aec 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -144,7 +144,6 @@ struct plugin_api { /* lcd */ void (*lcd_set_contrast)(int x); void (*lcd_update)(void); - void (*lcd_update_rect)(int x, int y, int width, int height); void (*lcd_clear_display)(void); void (*lcd_setmargins)(int x, int y); int (*lcd_getstringsize)(const unsigned char *str, int *w, int *h); @@ -163,6 +162,7 @@ struct plugin_api { void (*lcd_double_height)(bool on); #else /* HAVE_LCD_BITMAP */ fb_data* lcd_framebuffer; + void (*lcd_update_rect)(int x, int y, int width, int height); void (*lcd_set_drawmode)(int mode); int (*lcd_get_drawmode)(void); void (*lcd_setfont)(int font); diff --git a/uisimulator/common/lcd-common.c b/uisimulator/common/lcd-common.c index 51c8215da1..eaadb20489 100644 --- a/uisimulator/common/lcd-common.c +++ b/uisimulator/common/lcd-common.c @@ -27,7 +27,7 @@ void lcd_blit_mono(const unsigned char *data, int x, int y, int width, int height, int stride) { - (void)p_data; + (void)data; (void)x; (void)y; (void)width;