Skip to content

Commit 402b88b

Browse files
committed
Resposition On-Screen Timer
The Japanese font uses less space, and the original position was based on that, so the timer needs to be moved further left for the other versions.
1 parent f039473 commit 402b88b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ttyd-tools/rel/source/codes/OnScreenTimerC.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,16 @@ void Mod::onScreenTimer()
5656
second,
5757
modframe);
5858

59+
int FontDrawX = 75;
60+
#ifdef TTYD_JP
61+
FontDrawX += 25;
62+
#endif
63+
5964
ttyd::fontmgr::FontDrawStart();
6065
uint32_t color = 0xFFFFFFFF;
6166
ttyd::fontmgr::FontDrawColor(reinterpret_cast<uint8_t *>(&color));
6267
ttyd::fontmgr::FontDrawEdge();
63-
ttyd::fontmgr::FontDrawMessage(100, -153, mDisplayBuffer);
68+
ttyd::fontmgr::FontDrawMessage(FontDrawX, -153, mDisplayBuffer);
6469

6570
mOnScreenTimer.tick();
6671
}

0 commit comments

Comments
 (0)