This commit is contained in:
Kartik K. Agaram 2021-07-14 01:31:14 -07:00
parent e0d86d6537
commit d03dd5dff7
1 changed files with 1 additions and 0 deletions

1
img.mu
View File

@ -1072,6 +1072,7 @@ fn _read-ppm-buffer _buf: (addr array byte), x: int, y: int, width: int, channel
return result
}
# each byte in the image data is a color of the current palette
fn render-raw-image screen: (addr screen), _img: (addr image), xmin: int, ymin: int, width: int, height: int {
var img/esi: (addr image) <- copy _img
# yratio = height/img->height