mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-12-11 21:14:34 +00:00
📺 Fix TFT Classic UI non-Touchscreen 1024x600 (#24541)
This commit is contained in:
parent
b0b340aab9
commit
976ac28be5
@ -1386,8 +1386,13 @@
|
|||||||
#elif ENABLED(TFT_RES_1024x600)
|
#elif ENABLED(TFT_RES_1024x600)
|
||||||
#define TFT_WIDTH 1024
|
#define TFT_WIDTH 1024
|
||||||
#define TFT_HEIGHT 600
|
#define TFT_HEIGHT 600
|
||||||
|
#if ENABLED(TOUCH_SCREEN)
|
||||||
#define GRAPHICAL_TFT_UPSCALE 6
|
#define GRAPHICAL_TFT_UPSCALE 6
|
||||||
#define TFT_PIXEL_OFFSET_X 120
|
#define TFT_PIXEL_OFFSET_X 120
|
||||||
|
#else
|
||||||
|
#define GRAPHICAL_TFT_UPSCALE 8
|
||||||
|
#define TFT_PIXEL_OFFSET_X 0
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// FSMC/SPI TFT Panels using standard HAL/tft/tft_(fsmc|spi|ltdc).h
|
// FSMC/SPI TFT Panels using standard HAL/tft/tft_(fsmc|spi|ltdc).h
|
||||||
|
@ -2841,8 +2841,8 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(GRAPHICAL_TFT_UPSCALE) && !WITHIN(GRAPHICAL_TFT_UPSCALE, 2, 6)
|
#if defined(GRAPHICAL_TFT_UPSCALE) && !WITHIN(GRAPHICAL_TFT_UPSCALE, 2, 8)
|
||||||
#error "GRAPHICAL_TFT_UPSCALE must be between 2 and 6."
|
#error "GRAPHICAL_TFT_UPSCALE must be between 2 and 8."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if BOTH(CHIRON_TFT_STANDARD, CHIRON_TFT_NEW)
|
#if BOTH(CHIRON_TFT_STANDARD, CHIRON_TFT_NEW)
|
||||||
|
@ -791,7 +791,7 @@ static void z_minus() { moveAxis(Z_AXIS, -1); }
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAS_BED_PROBE
|
#if BOTH(HAS_BED_PROBE, TOUCH_SCREEN)
|
||||||
static void z_select() {
|
static void z_select() {
|
||||||
motionAxisState.z_selection *= -1;
|
motionAxisState.z_selection *= -1;
|
||||||
quick_feedback();
|
quick_feedback();
|
||||||
|
@ -771,7 +771,7 @@ static void z_minus() { moveAxis(Z_AXIS, -1); }
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAS_BED_PROBE
|
#if BOTH(HAS_BED_PROBE, TOUCH_SCREEN)
|
||||||
static void z_select() {
|
static void z_select() {
|
||||||
motionAxisState.z_selection *= -1;
|
motionAxisState.z_selection *= -1;
|
||||||
quick_feedback();
|
quick_feedback();
|
||||||
|
@ -772,7 +772,7 @@ static void z_minus() { moveAxis(Z_AXIS, -1); }
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAS_BED_PROBE
|
#if BOTH(HAS_BED_PROBE, TOUCH_SCREEN)
|
||||||
static void z_select() {
|
static void z_select() {
|
||||||
motionAxisState.z_selection *= -1;
|
motionAxisState.z_selection *= -1;
|
||||||
quick_feedback();
|
quick_feedback();
|
||||||
|
Loading…
Reference in New Issue
Block a user