about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-07-07 19:24:12 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-07-07 19:24:12 -0700
commitd78a45340c27a8a3a4b7ab334c1807a477b97c76 (patch)
tree984a757604e4344ba2c038671330bd6ebc037a45
parentfe3cbcd778cba895dadb94bdc2389b711970a013 (diff)
downloadmu-d78a45340c27a8a3a4b7ab334c1807a477b97c76.tar.gz
.
-rw-r--r--img.mu18
1 files changed, 9 insertions, 9 deletions
diff --git a/img.mu b/img.mu
index 34cbc6ca..551ce30a 100644
--- a/img.mu
+++ b/img.mu
@@ -246,9 +246,9 @@ fn render-pbm-image screen: (addr screen), _self: (addr image), xmin: int, ymin:
     compare i, max
     break-if->=
     var x/ebx: int <- copy xmin
-    var i2/eax: int <- copy 0
+    var img-x/eax: int <- copy 0
     {
-      compare i2, *width-a
+      compare img-x, *width-a
       break-if->=
       {
         var src-a/eax: (addr byte) <- index data, i
@@ -267,7 +267,7 @@ fn render-pbm-image screen: (addr screen), _self: (addr image), xmin: int, ymin:
       }
       x <- increment
       i <- increment
-      i2 <- increment
+      img-x <- increment
       loop
     }
     y <- increment
@@ -288,9 +288,9 @@ fn render-pgm-image screen: (addr screen), _self: (addr image), xmin: int, ymin:
     compare i, max
     break-if->=
     var x/ebx: int <- copy xmin
-    var i2/eax: int <- copy 0
+    var img-x/eax: int <- copy 0
     {
-      compare i2, *width-a
+      compare img-x, *width-a
       break-if->=
       {
         var src-a/eax: (addr byte) <- index data, i
@@ -302,7 +302,7 @@ fn render-pgm-image screen: (addr screen), _self: (addr image), xmin: int, ymin:
       }
       x <- increment
       i <- increment
-      i2 <- increment
+      img-x <- increment
       loop
     }
     y <- increment
@@ -323,9 +323,9 @@ fn render-ppm-image screen: (addr screen), _self: (addr image), xmin: int, ymin:
     compare i, max
     break-if->=
     var x/ebx: int <- copy xmin
-    var i2/eax: int <- copy 0
+    var img-x/eax: int <- copy 0
     {
-      compare i2, *width-a
+      compare img-x, *width-a
       break-if->=
       {
         var src-a/eax: (addr byte) <- index data, i
@@ -335,7 +335,7 @@ fn render-ppm-image screen: (addr screen), _self: (addr image), xmin: int, ymin:
       }
       x <- increment
       i <- increment
-      i2 <- increment
+      img-x <- increment
       loop
     }
     y <- increment