about summary refs log tree commit diff stats
path: root/shell/cell.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-07-29 07:55:28 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-07-29 07:55:28 -0700
commit295e50f0257fd8d5102ac2077a9431723ba68f58 (patch)
tree6dcd742c1a4772af63540a0de2c91787aafc08c5 /shell/cell.mu
parente9fb7e4453606011c77af31c228d2211e94be770 (diff)
downloadmu-295e50f0257fd8d5102ac2077a9431723ba68f58.tar.gz
shell: reliable image rendering
Diffstat (limited to 'shell/cell.mu')
-rw-r--r--shell/cell.mu1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/cell.mu b/shell/cell.mu
index ada86a29..2bf114a8 100644
--- a/shell/cell.mu
+++ b/shell/cell.mu
@@ -299,6 +299,7 @@ fn array? _x: (addr cell) -> _/eax: boolean {
 }
 
 fn new-image _out-ah: (addr handle cell), in: (addr stream byte) {
+  rewind-stream in
   var out-ah/eax: (addr handle cell) <- copy _out-ah
   allocate out-ah
   var out/eax: (addr cell) <- lookup *out-ah
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149