🐛 Fix TFT Color UI LCD_HEIGHT (#25281)
This commit is contained in:
@@ -1620,9 +1620,11 @@
|
|||||||
#define HAS_UI_1024x600 1
|
#define HAS_UI_1024x600 1
|
||||||
#endif
|
#endif
|
||||||
#if ANY(HAS_UI_320x240, HAS_UI_480x320, HAS_UI_480x272)
|
#if ANY(HAS_UI_320x240, HAS_UI_480x320, HAS_UI_480x272)
|
||||||
#define LCD_HEIGHT TERN(TOUCH_SCREEN, 6, 7) // Fewer lines with touch buttons onscreen
|
#if ENABLED(TFT_COLOR_UI_PORTRAIT)
|
||||||
#elif HAS_UI_240x320
|
#define LCD_HEIGHT TERN(TOUCH_SCREEN, 6, 7) // Fewer lines with touch buttons onscreen
|
||||||
#define LCD_HEIGHT TERN(TOUCH_SCREEN, 8, 6) // Fewer lines with touch buttons onscreen
|
#else
|
||||||
|
#define LCD_HEIGHT TERN(TOUCH_SCREEN, 8, 9) // Fewer lines with touch buttons onscreen
|
||||||
|
#endif
|
||||||
#elif HAS_UI_1024x600
|
#elif HAS_UI_1024x600
|
||||||
#define LCD_HEIGHT TERN(TOUCH_SCREEN, 12, 13) // Fewer lines with touch buttons onscreen
|
#define LCD_HEIGHT TERN(TOUCH_SCREEN, 12, 13) // Fewer lines with touch buttons onscreen
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user