bugfix in commit 8e182e394

Any command in shell that rendered the screen resulted in an infinite
loop. But it took me forever to even realize it was an infinite loop.
This commit is contained in:
Kartik K. Agaram 2021-08-29 00:51:57 -07:00
parent bd34858c4e
commit 7e70d3ac04
1 changed files with 3 additions and 1 deletions

View File

@ -678,7 +678,7 @@ fn convert-graphemes-to-pixels _screen: (addr screen) {
compare y, *height-a
break-if->=
var x/edi: int <- copy 0
{
$convert-graphemes-to-pixels:loop-x: {
compare x, *width-a
break-if->=
{
@ -696,7 +696,9 @@ fn convert-graphemes-to-pixels _screen: (addr screen) {
var bg/eax: int <- screen-background-color-at screen, x, y
var offset/eax: int <- draw-grapheme-on-screen-array data, g, x, y, fg, bg, *width-a, *height-a
x <- add offset
loop $convert-graphemes-to-pixels:loop-x
}
x <- increment
loop
}
y <- increment