From fff981bf6dba007838e1c84518e1ad2dbcadcbd5 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 3 Mar 2014 17:01:36 +0100 Subject: Implement lcd_get_dpi() for X-Fi Style (aka fix red). Change-Id: I9cab3a08c9e28558db2c16e8df30afcef6e11004 --- firmware/export/config/creativezenxfistyle.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/export/config/creativezenxfistyle.h b/firmware/export/config/creativezenxfistyle.h index 3dbfa9c855..7b8415c8c8 100644 --- a/firmware/export/config/creativezenxfistyle.h +++ b/firmware/export/config/creativezenxfistyle.h @@ -101,6 +101,8 @@ #define LCD_WIDTH 320 #define LCD_HEIGHT 240 #define LCD_DEPTH 16 /* 65536 colours */ +/* sqrt(320^2 + 240^2) / 2.4 = 166.66 */ +#define LCD_DPI 167 #define LCD_PIXELFORMAT RGB565 /* rgb565 */ /* Define this if you have a software controlled poweroff */ @@ -199,5 +201,3 @@ #define BOOTDIR "/.rockbox" #define INCLUDE_TIMEOUT_API - - -- cgit v1.2.3