diff options
author | Thomas Martitz <kugel@rockbox.org> | 2014-01-23 08:23:34 +0100 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2014-03-03 15:14:15 +0100 |
commit | 62524237f0055d2825d6cde90c49840404c57e30 (patch) | |
tree | 97e085c54c0f39ceeb0b0492a76641c848981485 /firmware/export/lcd.h | |
parent | ee28a706d4909b00d6bcfc304683b10ba9b853e0 (diff) | |
download | rockbox-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.h | 11 |
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, | |||
535 | extern void lcd_bmp(const struct bitmap* bm, int x, int y); | 535 | extern void lcd_bmp(const struct bitmap* bm, int x, int y); |
536 | extern void lcd_nine_segment_bmp(const struct bitmap* bm, int x, int y, | 536 | extern void lcd_nine_segment_bmp(const struct bitmap* bm, int x, int y, |
537 | int width, int height); | 537 | int width, int height); |
538 | #endif /* HAVE_LCD_BITMAP */ | ||
539 | |||
540 | |||
541 | #ifdef HAVE_TOUCHSCREEN | ||
542 | /* only needed for touchscreen for now, feel free to implement it for others | ||
543 | * once needed | ||
544 | */ | ||
545 | 538 | ||
539 | /* TODO: Impement this for remote displays if ever needed */ | ||
546 | #if defined(LCD_DPI) && (LCD_DPI > 0) | 540 | #if defined(LCD_DPI) && (LCD_DPI > 0) |
547 | /* returns the pixel density of the display */ | 541 | /* returns the pixel density of the display */ |
548 | static inline int lcd_get_dpi(void) { return LCD_DPI; } | 542 | static inline int lcd_get_dpi(void) { return LCD_DPI; } |
549 | #else | 543 | #else |
550 | extern int lcd_get_dpi(void); | 544 | extern int lcd_get_dpi(void); |
551 | #endif /* LCD_DPI */ | 545 | #endif /* LCD_DPI */ |
552 | #endif /* HAVE_TOUCHSCREEN */ | 546 | |
547 | #endif /* HAVE_LCD_BITMAP */ | ||
553 | 548 | ||
554 | #endif /* __LCD_H__ */ | 549 | #endif /* __LCD_H__ */ |