about summary refs log tree commit diff stats
path: root/400.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-06-15 10:33:18 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-06-15 10:33:18 -0700
commitc2c6f4c7ab40356f1138a3f4d8f06464373ad50b (patch)
tree9369a4da0497b7eb70470d4e30ec65e9a611c793 /400.mu
parentb9fea696871aece599c4ec25ec01ee0c2c00513b (diff)
downloadmu-c2c6f4c7ab40356f1138a3f4d8f06464373ad50b.tar.gz
flickerlessly render fake screens in environment
Font rendering now happens off the real screen, which provides the effect
of double-buffering.

Apps can now also use convert-graphemes-to-pixels for more traditional
double-buffering.
Diffstat (limited to '400.mu')
-rw-r--r--400.mu1
1 files changed, 1 insertions, 0 deletions
diff --git a/400.mu b/400.mu
index c8f001d7..a0f2d85b 100644
--- a/400.mu
+++ b/400.mu
@@ -1,6 +1,7 @@
 # screen
 sig pixel-on-real-screen x: int, y: int, color: int
 sig draw-grapheme-on-real-screen g: grapheme, x: int, y: int, color: int, background-color: int
+sig draw-grapheme-on-screen-array screen-data: (addr array byte), g: grapheme, x: int, y: int, color: int, background-color: int, screen-width: int, screen-height: int
 sig cursor-position-on-real-screen -> _/eax: int, _/ecx: int
 sig set-cursor-position-on-real-screen x: int, y: int
 sig draw-cursor-on-real-screen g: grapheme