about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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