about summary refs log tree commit diff stats
path: root/501draw-text.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-08-13 06:38:03 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-08-13 06:38:03 -0700
commitd8ac8020cfac7b4c8e9cce6ab3988511611cff86 (patch)
tree15d60f9216a9ce69f5d4911ab0ef61f50614a1a7 /501draw-text.mu
parent4e3703de21b03b0f3b21efcda8536ec7a652a5ae (diff)
downloadmu-d8ac8020cfac7b4c8e9cce6ab3988511611cff86.tar.gz
.
Diffstat (limited to '501draw-text.mu')
-rw-r--r--501draw-text.mu6
1 files changed, 3 insertions, 3 deletions
diff --git a/501draw-text.mu b/501draw-text.mu
index 03fd6f13..d87fc04a 100644
--- a/501draw-text.mu
+++ b/501draw-text.mu
@@ -172,16 +172,16 @@ fn render-grapheme screen: (addr screen), g: grapheme, xmin: int, ymin: int, xma
 # that way the caller can draw more if given the same min and max bounding-box.
 # if there isn't enough space, truncate
 fn draw-text-wrapping-right-then-down screen: (addr screen), _text: (addr array byte), xmin: int, ymin: int, xmax: int, ymax: int, _x: int, _y: int, color: int, background-color: int -> _/eax: int, _/ecx: int {
-  var stream-storage: (stream byte 0x4000/print-buffer-size)
+  var stream-storage: (stream byte 0x200/print-buffer-size)
   var stream/edi: (addr stream byte) <- address stream-storage
   var text/esi: (addr array byte) <- copy _text
   var len/eax: int <- length text
-  compare len, 0x4000/print-buffer-size
+  compare len, 0x200/print-buffer-size
   {
     break-if-<
     write stream, "ERROR: stream too small in draw-text-wrapping-right-then-down"
   }
-  compare len, 0x4000/print-buffer-size
+  compare len, 0x200/print-buffer-size
   {
     break-if->=
     write stream, text