summaryrefslogtreecommitdiff
path: root/src/ui_elements/UI.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui_elements/UI.c')
-rw-r--r--src/ui_elements/UI.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ui_elements/UI.c b/src/ui_elements/UI.c
index ea3463a..f9b7527 100644
--- a/src/ui_elements/UI.c
+++ b/src/ui_elements/UI.c
@@ -139,6 +139,7 @@ void GetPanesSplit(Rectangle *pane1, Rectangle *pane2, Rectangle body, float pro
pane2->width = (body.width - PADDING) * (1 - proportion_h);
}
+// !! Not used anywhere at this moment
void DrawPageView(int y, unsigned int pages, unsigned int current_page) {
if (pages == 0) return;
float width = 2 * PAGE_DOTS_PADDING
@@ -168,3 +169,10 @@ void DrawPageView(int y, unsigned int pages, unsigned int current_page) {
x_pos += PAGE_DOTS_SPACING + PAGE_DOTS_RADIUS * 2;
}
}
+
+void PrintTime(char *trg, size_t seconds) {
+ if (trg == NULL) return;
+ size_t disp_minutes = seconds / 60;
+ size_t disp_seconds = seconds % 60;
+ sprintf(trg, "%02zu:%02zu", disp_minutes, disp_seconds);
+}