This commit is contained in:
Kartik K. Agaram 2021-07-08 16:23:48 -07:00
parent 13ef6b6202
commit b049cc1320
1 changed files with 3 additions and 3 deletions

6
img.mu
View File

@ -294,9 +294,9 @@ fn render-pbm-image screen: (addr screen), _img: (addr image), xmin: int, ymin:
draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, imgy, 4/fg 0/bg
draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, idx, 5/fg 0/bg
}
var src/eax: (addr byte) <- index img-data, idx
var color/eax: byte <- copy-byte *src
var color-int/eax: int <- copy color
var src-a/eax: (addr byte) <- index img-data, idx
var src/eax: byte <- copy-byte *src-a
var color-int/eax: int <- copy src
{
compare color-int, 0/black
break-if-=