diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-09-30 10:25:28 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-09-30 10:42:49 +0100 |
commit | f373c97c90e816404c00ab48b2e36b18fd5e6c49 (patch) | |
tree | b268985996c496f9149e4508f9fea950711e1a6c /firmware/export/config.h | |
parent | 9ed36ec22f7ea880b64fa11d2c0d49485287ad03 (diff) | |
download | rockbox-f373c97c90e816404c00ab48b2e36b18fd5e6c49.tar.gz rockbox-f373c97c90e816404c00ab48b2e36b18fd5e6c49.zip |
Define LCD_STRIDEFORMAT unconditionally
Instead of putting "#ifdef LCD_STRIDEFORMAT" at every usage of the
macro it's simpler to have config.h define LCD_STRIDEFORMAT to the
default of horizontal stride when the target leaves it unspecified.
Change-Id: Ib187012aad65ac678dbd837b1464a83bad722411
Diffstat (limited to 'firmware/export/config.h')
-rw-r--r-- | firmware/export/config.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h index 2519b87f0d..e83194e0f4 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -772,6 +772,11 @@ Lyre prototype 1 */ | |||
772 | #define LCD_SPLIT_LINES 0 | 772 | #define LCD_SPLIT_LINES 0 |
773 | #endif | 773 | #endif |
774 | 774 | ||
775 | /* Most displays have a horizontal stride */ | ||
776 | #ifndef LCD_STRIDEFORMAT | ||
777 | # define LCD_STRIDEFORMAT HORIZONTAL_STRIDE | ||
778 | #endif | ||
779 | |||
775 | /* Simulator LCD dimensions. Set to standard dimensions if undefined */ | 780 | /* Simulator LCD dimensions. Set to standard dimensions if undefined */ |
776 | #ifndef SIM_LCD_WIDTH | 781 | #ifndef SIM_LCD_WIDTH |
777 | #define SIM_LCD_WIDTH LCD_WIDTH | 782 | #define SIM_LCD_WIDTH LCD_WIDTH |
@@ -978,8 +983,7 @@ Lyre prototype 1 */ | |||
978 | || defined(CPU_S5L870X) || (CONFIG_CPU == S3C2440) \ | 983 | || defined(CPU_S5L870X) || (CONFIG_CPU == S3C2440) \ |
979 | || defined(APPLICATION) || (CONFIG_CPU == PP5002) \ | 984 | || defined(APPLICATION) || (CONFIG_CPU == PP5002) \ |
980 | || (CONFIG_CPU == RK27XX) || (CONFIG_CPU == IMX233) || \ | 985 | || (CONFIG_CPU == RK27XX) || (CONFIG_CPU == IMX233) || \ |
981 | (defined(HAVE_LCD_COLOR) && \ | 986 | (defined(HAVE_LCD_COLOR) && (LCD_STRIDEFORMAT == HORIZONTAL_STRIDE)) |
982 | (!defined(LCD_STRIDEFORMAT) || (LCD_STRIDEFORMAT != VERTICAL_STRIDE))) | ||
983 | #define HAVE_SEMAPHORE_OBJECTS | 987 | #define HAVE_SEMAPHORE_OBJECTS |
984 | #endif | 988 | #endif |
985 | 989 | ||