Skip to content

Commit 4712435

Browse files
author
spaceAngel
committed
centered vaporwave watch face time #redesign
1 parent 4ad50a5 commit 4712435

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Apps/WatchFaces/Vaporwave.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ void Vaporwave::renderTime() {
3232
TTGOClass::getWatch()->tft->setTextFont(7);
3333
TTGOClass::getWatch()->tft->setTextColor(TFT_BLACK);
3434

35+
uint8_t timeStringWidth = TTGOClass::getWatch()->tft->textWidth(timeStr);
3536
TTGOClass::getWatch()->tft->drawString(
3637
timeStr,
37-
50,
38+
(TFT_WIDTH - timeStringWidth) / 2,
3839
46
3940
);
4041
}

0 commit comments

Comments
 (0)