refactor(DisplayDriverTFT): simplify alert rendering logic for better performance
This commit is contained in:
@@ -44,9 +44,8 @@ private:
|
||||
// Touch hint for alert - progressive fill from bottom
|
||||
bool _alertTouchDown = false;
|
||||
uint32_t _alertTouchStartMs = 0;
|
||||
uint32_t _lastAlertDrawMs = 0;
|
||||
bool _lastAlertPhase = false; // tracks bright/dark phase for 2-color alert
|
||||
static constexpr uint32_t ALERT_FILL_DURATION_MS = 3000;
|
||||
static constexpr uint32_t ALERT_DRAW_INTERVAL_MS = 333; // ~3fps
|
||||
|
||||
// Touch tracking for press/release detection
|
||||
bool _touchWasPressed = false;
|
||||
|
||||
Reference in New Issue
Block a user