feat: add debug touch drawing function and fix dashboard layout calculations

This commit is contained in:
2026-02-19 17:48:39 -08:00
parent a3164d722e
commit 4da32466a8
6 changed files with 13 additions and 4 deletions

View File

@@ -407,7 +407,7 @@ void DisplayDriverGFX::drawDashboard(const ScreenState& state) {
_gfx->printf("WiFi:%s", state.wifiSsid.length() > 0 ? "ON" : "OFF");
// Get tile layouts from library helper
int tileCount = display.calculateDashboardLayouts(30, 8);
int tileCount = display.calculateDashboardLayouts(STYLE_HEADER_HEIGHT, STYLE_TILE_GAP);
const TileLayout* layouts = display.getTileLayouts();
const char* tileLabels[] = { "1", "2", "3", "4", "5", "6", "7", "8" };