summaryrefslogtreecommitdiffstats
path: root/firmware/export/lcd.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-10-17 18:28:35 +0000
committerThomas Martitz <kugel@rockbox.org>2011-10-17 18:28:35 +0000
commita13e9644b5915215a0617d2c8b279886949f136b (patch)
treec35092100c027396c5e6566760f50a5e297d4a74 /firmware/export/lcd.h
parent55f078f4b5d5636b6f0041718f4d5b0fb91b8f33 (diff)
downloadrockbox-a13e9644b5915215a0617d2c8b279886949f136b.tar.gz
rockbox-a13e9644b5915215a0617d2c8b279886949f136b.zip
- Fix some reds by implementing lcd_get_dpi().
- Use the list item centering capabilities in the plugin lib - Bump plugin ABI for the changed viewport struct (sort the API too). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30775 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/lcd.h')
-rw-r--r--firmware/export/lcd.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h
index 56e19ddefa..e68795391f 100644
--- a/firmware/export/lcd.h
+++ b/firmware/export/lcd.h
@@ -556,8 +556,12 @@ extern void lcd_bitmap_transparent(const fb_data *src, int x, int y,
* once 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
+#endif /* LCD_DPI */
+#endif /* HAVE_TOUCHSCREEN */
#endif /* __LCD_H__ */