📺 Fix TFT Classic UI non-Touchscreen 1024x600 (#24541)

This commit is contained in:
Keith Bennett
2022-07-25 12:02:37 -07:00
committed by Scott Lahteine
parent 66369f8236
commit 1e9232723d
5 changed files with 12 additions and 7 deletions

View File

@@ -1469,8 +1469,13 @@
#elif ENABLED(TFT_RES_1024x600)
#define TFT_WIDTH 1024
#define TFT_HEIGHT 600
#define GRAPHICAL_TFT_UPSCALE 6
#define TFT_PIXEL_OFFSET_X 120
#if ENABLED(TOUCH_SCREEN)
#define GRAPHICAL_TFT_UPSCALE 6
#define TFT_PIXEL_OFFSET_X 120
#else
#define GRAPHICAL_TFT_UPSCALE 8
#define TFT_PIXEL_OFFSET_X 0
#endif
#endif
// FSMC/SPI TFT Panels using standard HAL/tft/tft_(fsmc|spi|ltdc).h