summaryrefslogtreecommitdiff
path: root/stage3/font.c
diff options
context:
space:
mode:
authorKimapr <kimapr@mail.ru>2023-12-22 23:17:20 +0500
committerLizzy Fleckenstein <lizzy@vlhl.dev>2023-12-22 23:47:50 +0100
commit277685222f41d717eed4c7c5a1a6dbc14370b116 (patch)
tree54481be966f3a1fe22b623e58bbc68254e3f82fe /stage3/font.c
parent8ed1362368dc064fa35bf879c1f905165b990de8 (diff)
downloadcuddles-277685222f41d717eed4c7c5a1a6dbc14370b116.tar.xz
clock driver etc
fancier monotonic clock: RTC interpolated with TSC font cursor position access APIs remove silly thread resume in main()
Diffstat (limited to 'stage3/font.c')
-rw-r--r--stage3/font.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/stage3/font.c b/stage3/font.c
index 3bbba86..4fd0c1d 100644
--- a/stage3/font.c
+++ b/stage3/font.c
@@ -38,6 +38,22 @@ void font_set_size(u16 size)
screen_height = gfx_info->height / outer_height;
}
+void font_set_cursor(term_pos new_cursor)
+{
+ cursor_x = new_cursor.x;
+ cursor_y = new_cursor.y;
+}
+
+term_pos font_get_cursor()
+{
+ return (term_pos){cursor_x, cursor_y};
+}
+
+term_pos font_get_size()
+{
+ return (term_pos){screen_width, screen_height};
+}
+
void font_load_blob(const void *blob)
{
memcpy(font, blob, 256*16);