summaryrefslogtreecommitdiffstats
path: root/firmware/export/config/gigabeatfx.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/config/gigabeatfx.h
parentee28a706d4909b00d6bcfc304683b10ba9b853e0 (diff)
downloadrockbox-62524237f0055d2825d6cde90c49840404c57e30.tar.gz
rockbox-62524237f0055d2825d6cde90c49840404c57e30.tar.bz2
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/config/gigabeatfx.h')
-rw-r--r--firmware/export/config/gigabeatfx.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/export/config/gigabeatfx.h b/firmware/export/config/gigabeatfx.h
index 2d1f89149d..c9e20ad8a7 100644
--- a/firmware/export/config/gigabeatfx.h
+++ b/firmware/export/config/gigabeatfx.h
@@ -42,6 +42,8 @@
/* LCD dimensions */
#define LCD_WIDTH 240
#define LCD_HEIGHT 320
+/* sqrt(240^2 + 320^2) / 2.2 = 181.8 */
+#define LCD_DPI 182
#define LCD_DEPTH 16 /* 65k colours */
#define LCD_PIXELFORMAT RGB565 /* rgb565 */