about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-04-14 20:34:56 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-04-14 20:34:56 -0700
commitf485bed5157363946b69044332603e94f00798be (patch)
tree205b12efe660fc2a7ce1653741e181c78fbd7689
parent31b43680793efcd0c3d638a88d63793f1c4bdd5d (diff)
downloadmu-f485bed5157363946b69044332603e94f00798be.tar.gz
shell: don't lose pixel graphics when moving cursor
-rw-r--r--500fake-screen.mu1
1 files changed, 1 insertions, 0 deletions
diff --git a/500fake-screen.mu b/500fake-screen.mu
index 1731a63c..7b2c3177 100644
--- a/500fake-screen.mu
+++ b/500fake-screen.mu
@@ -296,6 +296,7 @@ fn fake-screen-empty? _screen: (addr screen) -> _/eax: boolean {
   }
   var pixels-ah/eax: (addr handle stream pixel) <- get screen, pixels
   var pixels/eax: (addr stream pixel) <- lookup *pixels-ah
+  rewind-stream pixels
   var result/eax: boolean <- stream-empty? pixels
   return result
 }