diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-10-11 23:06:13 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-10-11 23:06:13 -0700 |
commit | 4d985cda1e703315f4b91640ea860492ee019570 (patch) | |
tree | 2cd100539a2aebdd19a60accca5fea36ba6c0836 | |
parent | 5668acaf442e52c3ae07766ba901702db2df97a2 (diff) | |
download | mu-4d985cda1e703315f4b91640ea860492ee019570.tar.gz |
7008 - tile: center menu
-rw-r--r-- | apps/tile/environment.mu | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/tile/environment.mu b/apps/tile/environment.mu index 64a779f7..ab3a30d8 100644 --- a/apps/tile/environment.mu +++ b/apps/tile/environment.mu @@ -833,6 +833,9 @@ fn clear-canvas _env: (addr environment) { var repl-col/ecx: int <- copy *_repl-col draw-vertical-line screen, 1, *nrows, repl-col # wordstar-style cheatsheet of shortcuts + var menu-start/ecx: int <- copy repl-col + menu-start <- subtract 0x2c # 44 = half the size of the menu + move-cursor screen, *nrows, menu-start start-reverse-video screen print-string screen, " ctrl-a " reset-formatting screen |