about summary refs log tree commit diff stats
path: root/img.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-07-11 15:43:58 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-07-11 15:43:58 -0700
commitb646d24b06d9ab6dd53bfaea11980dbea6f2c8b8 (patch)
treec654d1b42516852ee97aeed40495a22b8d94365a /img.mu
parent9c4a3817702458abde2b9f14f4da6850ba451353 (diff)
downloadmu-b646d24b06d9ab6dd53bfaea11980dbea6f2c8b8.tar.gz
.
Diffstat (limited to 'img.mu')
-rw-r--r--img.mu4
1 files changed, 2 insertions, 2 deletions
diff --git a/img.mu b/img.mu
index dfca541a..4510604a 100644
--- a/img.mu
+++ b/img.mu
@@ -488,7 +488,7 @@ fn dither-pgm-unordered _src: (addr image), _dest: (addr image) {
       break-if->=
       var color/eax: byte <- _read-pgm-buffer src-data, x, y, src-width
       var error/esi: int <- copy 0
-      color, error <- compute-color-and-error buffer, color, x, y, src-width
+      color, error <- compute-greyscale-color-and-error buffer, color, x, y, src-width
       _write-raw-buffer dest-data, x, y, src-width, color
       _diffuse-dithering-error-floyd-steinberg buffer, x, y, src-width, src-height, error
       x <- increment
@@ -500,7 +500,7 @@ fn dither-pgm-unordered _src: (addr image), _dest: (addr image) {
   }
 }
 
-fn compute-color-and-error buf: (addr array int), initial-color: byte, x: int, y: int, width: int -> _/eax: byte, _/esi: int {
+fn compute-greyscale-color-and-error buf: (addr array int), initial-color: byte, x: int, y: int, width: int -> _/eax: byte, _/esi: int {
   var error/esi: int <- _read-dithering-error buf, x, y, width
   # error += initial-color << 16
   var color-int/eax: int <- copy initial-color