From 031744fbc28ba52b3aa97db257832f2932988d44 Mon Sep 17 00:00:00 2001 From: Tom-on64 Date: Sun, 26 May 2024 18:44:49 +0200 Subject: [PATCH] Moved clock to top right corner! --- include/interrupt/rtc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/interrupt/rtc.h b/include/interrupt/rtc.h index 2578288..c3ee7d7 100644 --- a/include/interrupt/rtc.h +++ b/include/interrupt/rtc.h @@ -127,7 +127,8 @@ __attribute__ ((interrupt)) void rtcHandler(intFrame_t* iframe) { if (datetime->second < 10) strcat(buf, "0"); strcat(buf, itoa(datetime->second, 10)); - printAt(buf, 30, 0); + // The clock is a little offset down (about 0.4 of a character) It does look nice though! + printAt(buf, gfxMode->xRes - strlen(buf) - 1, 0); } }