about summary refs log tree commit diff stats
path: root/501draw-text.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-09-02 12:44:18 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-09-02 12:44:18 -0700
commit1e1dd6b4d5c82c780e096931a55778a2932c5a85 (patch)
treecab7a62d424b6eda6eef9463bca0032037a34ba0 /501draw-text.mu
parent38909fbce08002e6106c762dd8d573b4357476b6 (diff)
downloadmu-1e1dd6b4d5c82c780e096931a55778a2932c5a85.tar.gz
.
Diffstat (limited to '501draw-text.mu')
-rw-r--r--501draw-text.mu2
1 files changed, 1 insertions, 1 deletions
diff --git a/501draw-text.mu b/501draw-text.mu
index 0b74c160..9e2d5f43 100644
--- a/501draw-text.mu
+++ b/501draw-text.mu
@@ -153,8 +153,8 @@ fn draw-text-rightward-from-cursor-over-full-screen screen: (addr screen), text:
 }
 
 fn render-code-point screen: (addr screen), c: code-point, xmin: int, ymin: int, xmax: int, ymax: int, x: int, y: int, color: int, background-color: int -> _/eax: int, _/ecx: int {
-  compare c, 0xa/newline
   var x/ecx: int <- copy x
+  compare c, 0xa/newline
   {
     break-if-!=
     # minimum effort to clear cursor