about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-04-17 22:37:29 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-04-17 22:37:29 -0700
commit1c7799486d83b9b17c0aa25277551ef72858ad03 (patch)
treea7d08e12d84b6607a0d7a7b497bb0c5a3577c013
parent8be6fe2485e4e23427a65375767fbaabf420f7ef (diff)
downloadmu-1c7799486d83b9b17c0aa25277551ef72858ad03.tar.gz
allow drawing all pixels
So far we aren't running out of memory. Might as well loosen our belts.
-rw-r--r--500fake-screen.mu5
1 files changed, 2 insertions, 3 deletions
diff --git a/500fake-screen.mu b/500fake-screen.mu
index fce0dc5d..3e74a5bd 100644
--- a/500fake-screen.mu
+++ b/500fake-screen.mu
@@ -52,10 +52,9 @@ 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 4
+  tmp <- shift-left 3/log2-font-width
+  tmp <- shift-left 4/log2-font-height
   populate-stream pixels-ah, tmp
   # screen->cursor-x = 0
   dest <- get screen, cursor-x