about summary refs log tree commit diff stats
path: root/apps/tile/environment.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-11-06 14:26:42 -0800
committerKartik Agaram <vc@akkartik.com>2020-11-06 14:26:42 -0800
commit2855bc69bd9ab3ab0f4ffdfad104cfa5e3bffba7 (patch)
treeea818044fb29c4369e67ded443de592d9742dc5b /apps/tile/environment.mu
parent443140ae3e3eae3bf59f34447bedc8329498cca0 (diff)
downloadmu-2855bc69bd9ab3ab0f4ffdfad104cfa5e3bffba7.tar.gz
7196 - tile: render empty screen
Diffstat (limited to 'apps/tile/environment.mu')
-rw-r--r--apps/tile/environment.mu7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/tile/environment.mu b/apps/tile/environment.mu
index fa897203..c574b551 100644
--- a/apps/tile/environment.mu
+++ b/apps/tile/environment.mu
@@ -1382,14 +1382,13 @@ fn render-column screen: (addr screen), functions: (addr handle function), bindi
       compare *top-addr, 0
       break-if-<=
       decrement *top-addr
-      move-cursor screen, curr-row, indented-col
       {
         var data-ah/eax: (addr handle array value) <- get stack-addr, data
         var data/eax: (addr array value) <- lookup *data-ah
-        var top/edx: int <- copy *top-addr
-        var dest-offset/edx: (offset value) <- compute-offset data, top
+        var top/ecx: int <- copy *top-addr
+        var dest-offset/ecx: (offset value) <- compute-offset data, top
         var val/eax: (addr value) <- index data, dest-offset
-        render-value screen, val, max-width
+        render-value screen, curr-row, indented-col, val, max-width
       }
       curr-row <- increment
       loop