This commit is contained in:
Kartik K. Agaram 2021-06-15 21:40:40 -07:00
parent 614d0ecff4
commit bca7f834c3
2 changed files with 3 additions and 1 deletions

View File

@ -608,7 +608,6 @@ fn convert-graphemes-to-pixels _screen: (addr screen) {
# this is a situation where fake screens aren't faithful to real screens; we don't support overlap between graphemes and raw pixels
compare tmp, 0
break-if-=
abort "bb"
var g: grapheme
copy-to g, tmp
var tmp/eax: int <- screen-color-at screen, x, y

View File

@ -28,6 +28,7 @@ fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk)
var second-screen/edi: (addr screen) <- address second-buffer
initialize-screen second-screen, 0x80, 0x30, 1/include-pixels
render second-screen, env
convert-graphemes-to-pixels second-screen
copy-pixels second-screen, screen
{
edit keyboard, env
@ -36,7 +37,9 @@ fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk)
{
break-if-=
step env
clear-screen second-screen
render second-screen, env
convert-graphemes-to-pixels second-screen
copy-pixels second-screen, screen
}
linger env