From 124c67645cb6f1b9f06d7104c5398fa4732e2f25 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 20 Jun 2017 10:40:07 -0700 Subject: 3934 --- html/081print.mu.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'html/081print.mu.html') diff --git a/html/081print.mu.html b/html/081print.mu.html index 01a5dd12..c32c880f 100644 --- a/html/081print.mu.html +++ b/html/081print.mu.html @@ -167,7 +167,7 @@ if ('onhashchange' in window) { 104 # (handle special cases exactly like in the real screen) 105 width:num <- get *screen, num-columns:offset 106 height:num <- get *screen, num-rows:offset -107 capacity:num <- multiply width, height +107 capacity:num <- multiply width, height 108 row:num <- get *screen, cursor-row:offset 109 column:num <- get *screen, cursor-column:offset 110 buf:&:@:screen-cell <- get *screen, data:offset @@ -297,8 +297,8 @@ if ('onhashchange' in window) { 234 ¦ loop 235 } 236 # top-idx now same as next-top-idx; wrap around if necessary -237 capacity:num <- multiply width, height -238 _, top-idx <- divide-with-remainder, top-idx, capacity +237 capacity:num <- multiply width, height +238 _, top-idx <- divide-with-remainder, top-idx, capacity 239 *screen <- put *screen, top-idx:offset, top-idx 240 ] 241 @@ -309,8 +309,8 @@ if ('onhashchange' in window) { 246 load-ingredients 247 result <- multiply width, row 248 result <- add result, column, top-idx -249 capacity:num <- multiply width, height -250 _, result <- divide-with-remainder result, capacity +249 capacity:num <- multiply width, height +250 _, result <- divide-with-remainder result, capacity 251 ] 252 253 scenario print-character-at-top-left [ -- cgit 1.4.1-2-gfad0