about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-07-13 13:07:13 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-07-13 13:07:13 -0700
commit100437271141cebbe268fb732611430f7112b382 (patch)
tree26042cdd403b86517c6e8d37a22e450ece33d336
parent840f394f19985a8091c255a89e4ea9ffec7a4e95 (diff)
downloadmu-100437271141cebbe268fb732611430f7112b382.tar.gz
now t.pgm looks right
-rw-r--r--img.mu14
1 files changed, 7 insertions, 7 deletions
diff --git a/img.mu b/img.mu
index 267f45a2..d258dd72 100644
--- a/img.mu
+++ b/img.mu
@@ -28,7 +28,7 @@ fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk)
   var img/esi: (addr image) <- address img-storage
   load-image img, data-disk
   render-image screen, img, 0/x, 0xd0/y, 0x12c/width=300, 0xc8/height=200
-#?   render-pgm-image screen, img, 0x140/x, 0/y, 0x12c/width=300, 0xc8/height=200
+  render-pgm-image screen, img, 0x140/x, 0/y, 0x12c/width=300, 0xc8/height=200
 }
 
 fn load-image self: (addr image), data-disk: (addr disk) {
@@ -109,7 +109,7 @@ fn render-image screen: (addr screen), _img: (addr image), xmin: int, ymin: int,
     var img2-storage: image
     var img2/edi: (addr image) <- address img2-storage
     dither-pgm-unordered img, img2
-#?     render-raw-image screen, img2, xmin, ymin, width, height
+    render-raw-image screen, img2, xmin, ymin, width, height
     return
   }
   {
@@ -497,11 +497,11 @@ fn dither-pgm-unordered _src: (addr image), _dest: (addr image) {
 #?         draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, foo, 5/fg 0/bg
 #?         abort "error too high"
 #?       }
-      {
-        var foo/eax: int <- copy error
-        foo <- shift-right-signed 0x10
-        psd "e", foo, 5/fg, x, y
-      }
+#?       {
+#?         var foo/eax: int <- copy error
+#?         foo <- shift-right-signed 0x10
+#?         psd "e", foo, 5/fg, x, y
+#?       }
       # error += (initial-color << 16)
       {
         var tmp/eax: int <- copy initial-color