diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-02-22 23:59:35 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-02-22 23:59:35 -0800 |
commit | 2812e206085e8de6e40d1af1fa2e41bb57a58021 (patch) | |
tree | 2c5b7f62e36fb6bd03236fc241d1c59aa0c1bf22 /baremetal/501draw-text.mu | |
parent | 9a96662dff9ec495442276ee1f40fea43183245b (diff) | |
download | mu-2812e206085e8de6e40d1af1fa2e41bb57a58021.tar.gz |
7793 - baremetal/shell: menu
Diffstat (limited to 'baremetal/501draw-text.mu')
-rw-r--r-- | baremetal/501draw-text.mu | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/baremetal/501draw-text.mu b/baremetal/501draw-text.mu index b17b54a3..9b207361 100644 --- a/baremetal/501draw-text.mu +++ b/baremetal/501draw-text.mu @@ -130,12 +130,12 @@ fn draw-text-rightward-over-full-screen screen: (addr screen), text: (addr array return result } -fn draw-text-rightward-from-cursor screen: (addr screen), text: (addr array byte), xmax: int, color: int, background-color: int -> _/eax: int { +fn draw-text-rightward-from-cursor screen: (addr screen), text: (addr array byte), xmax: int, color: int, background-color: int { var cursor-x/eax: int <- copy 0 var cursor-y/ecx: int <- copy 0 cursor-x, cursor-y <- cursor-position screen - var result/eax: int <- draw-text-rightward screen, text, cursor-x, xmax, cursor-y, color, background-color - return result + cursor-x <- draw-text-rightward screen, text, cursor-x, xmax, cursor-y, color, background-color + set-cursor-position screen, cursor-x, cursor-y } fn render-grapheme screen: (addr screen), g: grapheme, xmin: int, ymin: int, xmax: int, ymax: int, x: int, y: int, color: int, background-color: int -> _/eax: int, _/ecx: int { |