summaryrefslogtreecommitdiffstats
path: root/firmware/export/lcd.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-01-23 08:23:34 +0100
committerThomas Martitz <kugel@rockbox.org>2014-03-03 15:14:15 +0100
commit62524237f0055d2825d6cde90c49840404c57e30 (patch)
tree97e085c54c0f39ceeb0b0492a76641c848981485 /firmware/export/lcd.h
parentee28a706d4909b00d6bcfc304683b10ba9b853e0 (diff)
downloadrockbox-62524237f0055d2825d6cde90c49840404c57e30.tar.gz
rockbox-62524237f0055d2825d6cde90c49840404c57e30.zip
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
Diffstat (limited to 'firmware/export/lcd.h')
-rw-r--r--firmware/export/lcd.h11
1 files changed, 3 insertions, 8 deletions
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__ */