about summary refs log tree commit diff stats
path: root/511image.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-10-26 23:39:36 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-10-26 23:39:36 -0700
commita3f73278b198d0366c590ec8bd7fb8cad5c2931d (patch)
tree1b4868e06faa11a5bd1fc09555afe78d60dfbe8b /511image.mu
parent0ccfd0156f8129df0959b51593bf2a9116e03a37 (diff)
downloadmu-a3f73278b198d0366c590ec8bd7fb8cad5c2931d.tar.gz
task: juggling function outputs between registers
Diffstat (limited to '511image.mu')
-rw-r--r--511image.mu4
1 files changed, 2 insertions, 2 deletions
diff --git a/511image.mu b/511image.mu
index f2df9424..8e61183f 100644
--- a/511image.mu
+++ b/511image.mu
@@ -368,12 +368,12 @@ fn dither-pgm-unordered-monochrome _src: (addr image), _dest: (addr image) {
       curr-int <- shift-left 0x10  # we have 32 bits; we'll use 16 bits for the fraction and leave 8 for unanticipated overflow
       var error/esi: int <- _read-dithering-error errors, x, y, src-width
       error <- add curr-int
-      $_dither-pgm-unordered-monochrome:update-error: {
+      $dither-pgm-unordered-monochrome:update-error: {
         compare error, 0x800000
         {
           break-if->=
           _write-raw-buffer dest-data, x, y, src-width, 0/black
-          break $_dither-pgm-unordered-monochrome:update-error
+          break $dither-pgm-unordered-monochrome:update-error
         }
         _write-raw-buffer dest-data, x, y, src-width, 1/white
         error <- subtract 0xff0000