about summary refs log tree commit diff stats
path: root/500fake-screen.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-05-29 20:52:57 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-05-29 20:52:57 -0700
commit1eb74e2d5d747b617a1d1a253c45178a72122a50 (patch)
tree5a87ae700d865e2f94eb7bc1b51b3caa77c99b3f /500fake-screen.mu
parent1d89aa38c20971746380052c4988f18dd9b8e765 (diff)
downloadmu-1eb74e2d5d747b617a1d1a253c45178a72122a50.tar.gz
shell: scrolling the trace
Diffstat (limited to '500fake-screen.mu')
-rw-r--r--500fake-screen.mu3
1 files changed, 2 insertions, 1 deletions
diff --git a/500fake-screen.mu b/500fake-screen.mu
index 607f1ce8..819d1c53 100644
--- a/500fake-screen.mu
+++ b/500fake-screen.mu
@@ -116,9 +116,10 @@ fn draw-code-point screen: (addr screen), c: code-point, x: int, y: int, color:
   draw-grapheme screen, g, x, y, color, background-color
 }
 
-# not really needed for a real screen, though it shouldn't do any harm
+# fake screens only
 fn screen-cell-index _screen: (addr screen), x: int, y: int -> _/ecx: int {
   var screen/esi: (addr screen) <- copy _screen
+  # some bounds checks that aren't needed for a real screen, but might help catch problems
   {
     compare x, 0
     break-if->=