From c3c393c97845b85f263f62ed544b2a2028d702dd Mon Sep 17 00:00:00 2001 From: Ruffalo-sunghwan Date: Wed, 4 May 2022 19:03:32 +0900 Subject: [PATCH] Apps/watchfaces : some correct --- src/apps/watchfaces/watchface_dual_time.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/apps/watchfaces/watchface_dual_time.cpp b/src/apps/watchfaces/watchface_dual_time.cpp index 1597c375d..c46bea55e 100644 --- a/src/apps/watchfaces/watchface_dual_time.cpp +++ b/src/apps/watchfaces/watchface_dual_time.cpp @@ -251,14 +251,12 @@ void commonSecondsDisplay() { hal->gfx()->setTextLeftAligned(); hal->gfx()->setTextBottomAligned(); hal->gfx()->setTextCenterAligned(); - hal->gfx()->setTextCursor(120, 150); + hal->gfx()->setTextCursor(BUF_W/2, 150); hal->gfx()->print(second); } void OswAppWatchfaceDualTime::setup() { - showDateFormat = (OswConfigAllKeys::dateFormat.get() == "mm/dd/yyyy" - ? 1 - : (OswConfigAllKeys::dateFormat.get() == "dd.mm.yyyy" ? 2 : 3)); + showDateFormat = (OswConfigAllKeys::dateFormat.get() == "mm/dd/yyyy" ? 1 : (OswConfigAllKeys::dateFormat.get() == "dd.mm.yyyy" ? 2 : 3)); } void OswAppWatchfaceDualTime::loop() {