about summary refs log tree commit diff stats
path: root/baremetal/501draw-text.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-02-10 22:34:08 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-02-10 22:34:08 -0800
commit08c55cb2b714eede20349137ac0ddcebac443a84 (patch)
tree8a9a2ea6ff3d008d9ee66b52830c265a4e4e2901 /baremetal/501draw-text.mu
parent2be221bce82e642359cdb5f902fba6af36d9b7fe (diff)
downloadmu-08c55cb2b714eede20349137ac0ddcebac443a84.tar.gz
7713
Diffstat (limited to 'baremetal/501draw-text.mu')
-rw-r--r--baremetal/501draw-text.mu6
1 files changed, 6 insertions, 0 deletions
diff --git a/baremetal/501draw-text.mu b/baremetal/501draw-text.mu
index ba1d4805..af3b3a49 100644
--- a/baremetal/501draw-text.mu
+++ b/baremetal/501draw-text.mu
@@ -69,6 +69,12 @@ fn draw-grapheme-at-cursor screen: (addr screen), g: grapheme, color: int, backg
   draw-grapheme screen, g, cursor-x, cursor-y, color, background-color
 }
 
+# we can't really render non-ASCII yet, but when we do we'll be ready
+fn draw-code-point-at-cursor screen: (addr screen), c: code-point, color: int, background-color: int {
+  var g/eax: grapheme <- copy c
+  draw-grapheme-at-cursor screen, g, color, background-color
+}
+
 # draw a single line of text from x, y to xmax
 # return the next 'x' coordinate
 # if there isn't enough space, return 0 without modifying the screen