From 0278f152cfe5d4fa13e7ea4416b02438f722ce6f Mon Sep 17 00:00:00 2001 From: Alexandre Sanlim Date: Sat, 1 Jun 2024 12:20:55 -0300 Subject: [PATCH] fix miner screen size for ttgo 1.14 --- src/drivers/displays/tDisplayV1Driver.cpp | 4 +--- src/media/images_240_135.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/drivers/displays/tDisplayV1Driver.cpp b/src/drivers/displays/tDisplayV1Driver.cpp index 080a1a74..c13c43bd 100644 --- a/src/drivers/displays/tDisplayV1Driver.cpp +++ b/src/drivers/displays/tDisplayV1Driver.cpp @@ -67,14 +67,12 @@ void tDisplay_MinerScreen(unsigned long mElapsed) render.rdrawString(data.currentHashRate.c_str(), 96, 90, TFT_BLACK); // Total hashes render.setFontSize(13); - render.rdrawString(data.totalMHashes.c_str(), 200, 112, TFT_BLACK); + render.rdrawString(data.totalMHashes.c_str(), 200, 106, TFT_BLACK); // Block templates - render.setFontSize(13); render.drawString(data.templates.c_str(), 140, 15, 0xDEDB); // Best diff render.drawString(data.bestDiff.c_str(), 140, 38, 0xDEDB); // 32Bit shares - render.setFontSize(13); render.drawString(data.completedShares.c_str(), 140, 60, 0xDEDB); // Hores render.setFontSize(9); diff --git a/src/media/images_240_135.h b/src/media/images_240_135.h index cb4935c2..ae036f3d 100644 --- a/src/media/images_240_135.h +++ b/src/media/images_240_135.h @@ -142,7 +142,7 @@ const unsigned short setupModeScreen[0xFD20] PROGMEM = { // Icon width and height const uint16_t MinerWidth = 240; -const uint16_t MinerHeight = 128; +const uint16_t MinerHeight = 135; const unsigned short MinerScreen[0x7800] PROGMEM = {