about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-04-18 23:25:26 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-04-18 23:25:26 -0700
commit53b56c67a96417a979188f000baa28d2fba7672c (patch)
treebd7128c04db02e964903cec8099a1cbbc086a710
parentad46997f9559b12b5ef7b6fd88f881651a1cc0ca (diff)
downloadmu-53b56c67a96417a979188f000baa28d2fba7672c.tar.gz
Revert "allow drawing all pixels"
It causes us to run out of memory during tests.
-rw-r--r--500fake-screen.mu5
1 files changed, 3 insertions, 2 deletions
diff --git a/500fake-screen.mu b/500fake-screen.mu
index 3e74a5bd..fce0dc5d 100644
--- a/500fake-screen.mu
+++ b/500fake-screen.mu
@@ -52,9 +52,10 @@ fn initialize-screen _screen: (addr screen), width: int, height: int {
     tmp <- multiply width
     populate data-addr, tmp
   }
+  # allocate space for 16 pixels per 16x8 character. So one column of pixels
+  # per character.
   var pixels-ah/ecx: (addr handle stream pixel) <- get screen, pixels
-  tmp <- shift-left 3/log2-font-width
-  tmp <- shift-left 4/log2-font-height
+  tmp <- shift-left 4
   populate-stream pixels-ah, tmp
   # screen->cursor-x = 0
   dest <- get screen, cursor-x