From a1842c04f9cb73210d4cacde61a9e4b115050765 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 18 Jun 2014 07:15:00 +0200 Subject: lcd-24bit: Introduce a 24-bit mid-level LCD driver With LCD driver all calculation will be performed on RGB888 and the hardware/OS can display from our 24bit framebuffer. It is not yet as performance optimized as the existing drivers but should be good enough.The vast number of small changes is due to the fact that fb_data can be a struct type now, while most of the code expected a scalar type. lcd-as-memframe ASM code does not work with 24bit currently so the with 24bit it enforces the generic C code. All plugins are ported over. Except for rockpaint. It uses so much memory that it wouldnt fit into the 512k plugin buffer anymore (patches welcome). Change-Id: Ibb1964545028ce0d8ff9833ccc3ab66be3ee0754 --- firmware/export/config/samsungypr0.h | 2 +- firmware/export/config/samsungypr1.h | 4 ++-- firmware/export/config/sansae200v2.h | 4 ++-- firmware/export/config/sdlapp.h | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'firmware/export/config') diff --git a/firmware/export/config/samsungypr0.h b/firmware/export/config/samsungypr0.h index 049caa01b6..0fce70e1fe 100644 --- a/firmware/export/config/samsungypr0.h +++ b/firmware/export/config/samsungypr0.h @@ -47,7 +47,7 @@ /* sqrt(240^2 + 320^2) / 2.6 = 153.8 */ #define LCD_DPI 154 -#define LCD_DEPTH 16 +#define LCD_DEPTH 24 /* Check that but should not matter */ #define LCD_PIXELFORMAT RGB565 diff --git a/firmware/export/config/samsungypr1.h b/firmware/export/config/samsungypr1.h index 1aaf85dcb5..42b46e0699 100644 --- a/firmware/export/config/samsungypr1.h +++ b/firmware/export/config/samsungypr1.h @@ -53,11 +53,11 @@ #define LCD_HEIGHT 240 #endif -#define LCD_DEPTH 16 +#define LCD_DEPTH 24 /* Calculated value, important for touch sensor */ #define LCD_DPI 180 /* Check that but should not matter */ -#define LCD_PIXELFORMAT RGB565 +#define LCD_PIXELFORMAT RGB888 /* Capacitive touchscreen */ #define HAVE_TOUCHSCREEN diff --git a/firmware/export/config/sansae200v2.h b/firmware/export/config/sansae200v2.h index c703439e7f..e70b409d51 100644 --- a/firmware/export/config/sansae200v2.h +++ b/firmware/export/config/sansae200v2.h @@ -53,8 +53,8 @@ #define LCD_HEIGHT 220 /* sqrt(176^2 + 220^2) / 1.8 = 156.5 */ #define LCD_DPI 157 -#define LCD_DEPTH 16 /* 65536 colours */ -#define LCD_PIXELFORMAT RGB565 /* rgb565 */ +#define LCD_DEPTH 24 /* 65536 colours */ +#define LCD_PIXELFORMAT RGB888 /* rgb565 */ #ifndef BOOTLOADER /* define this if you have LCD enable function */ diff --git a/firmware/export/config/sdlapp.h b/firmware/export/config/sdlapp.h index cd973fcf73..626bd5c99f 100644 --- a/firmware/export/config/sdlapp.h +++ b/firmware/export/config/sdlapp.h @@ -44,8 +44,8 @@ #define LCD_HEIGHT 480 #endif -#define LCD_DEPTH 16 -#define LCD_PIXELFORMAT RGB565 +#define LCD_DEPTH 24 +#define LCD_PIXELFORMAT RGB888 /* define this to indicate your device's keypad */ #define HAVE_TOUCHSCREEN -- cgit v1.2.3