From 62524237f0055d2825d6cde90c49840404c57e30 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Thu, 23 Jan 2014 08:23:34 +0100 Subject: Implement lcd_get_dpi() for all bitmap targets. DPI values are autogenerated from the resolution and collected display size values. These values are inserted as comments as well. Change-Id: Id03aedf9af18348f773dfce002805e480f6751e8 --- firmware/export/lcd.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'firmware/export/lcd.h') diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index 386ac5a8bf..b72989fdb5 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h @@ -535,20 +535,15 @@ extern void lcd_bmp_part(const struct bitmap* bm, int src_x, int src_y, extern void lcd_bmp(const struct bitmap* bm, int x, int y); extern void lcd_nine_segment_bmp(const struct bitmap* bm, int x, int y, int width, int height); -#endif /* HAVE_LCD_BITMAP */ - - -#ifdef HAVE_TOUCHSCREEN -/* only needed for touchscreen for now, feel free to implement it for others - * once needed - */ +/* TODO: Impement this for remote displays if ever needed */ #if defined(LCD_DPI) && (LCD_DPI > 0) /* returns the pixel density of the display */ static inline int lcd_get_dpi(void) { return LCD_DPI; } #else extern int lcd_get_dpi(void); #endif /* LCD_DPI */ -#endif /* HAVE_TOUCHSCREEN */ + +#endif /* HAVE_LCD_BITMAP */ #endif /* __LCD_H__ */ -- cgit v1.2.3