COLOR_UI without TOUCH_SCREEN 👍🏻 (#20178)

This commit is contained in:
Victor Oliveira
2020-11-17 23:07:34 -03:00
committed by GitHub
parent 1cceae89cd
commit 75924edcf8
3 changed files with 44 additions and 29 deletions

View File

@ -169,7 +169,9 @@
if (ui.should_draw()) {
MenuItem_static::draw(1, GET_TEXT(MSG_LEVEL_BED_WAITING));
// Color UI needs a control to detect a touch
TERN_(HAS_GRAPHICAL_TFT, touch.add_control(CLICK, 0, 0, TFT_WIDTH, TFT_HEIGHT));
#if BOTH(TOUCH_SCREEN, HAS_GRAPHICAL_TFT)
touch.add_control(CLICK, 0, 0, TFT_WIDTH, TFT_HEIGHT);
#endif
}
if (ui.use_click()) {
manual_probe_index = 0;