From 8e182e394e492b9ff157dc88837dee894893c1ee Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 29 Aug 2021 00:01:08 -0700 Subject: width-aware drawing primitives No support yet for drawing wide graphemes. --- 400.mu | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '400.mu') diff --git a/400.mu b/400.mu index 7eba6f46..fe2263a4 100644 --- a/400.mu +++ b/400.mu @@ -1,7 +1,8 @@ # screen sig pixel-on-real-screen x: int, y: int, color: int -sig draw-grapheme-on-real-screen g: grapheme, x: int, y: int, color: int, background-color: int -sig draw-grapheme-on-screen-array screen-data: (addr array byte), g: grapheme, x: int, y: int, color: int, background-color: int, screen-width: int, screen-height: int +sig draw-grapheme-on-real-screen g: grapheme, x: int, y: int, color: int, background-color: int -> _/eax: int +sig draw-grapheme-on-screen-array screen-data: (addr array byte), g: grapheme, x: int, y: int, color: int, background-color: int, screen-width: int, screen-height: int -> _/eax: int +sig wide-grapheme? g: grapheme -> _/eax: boolean sig cursor-position-on-real-screen -> _/eax: int, _/ecx: int sig set-cursor-position-on-real-screen x: int, y: int sig draw-cursor-on-real-screen g: grapheme -- cgit 1.4.1-2-gfad0