about summary refs log tree commit diff stats
path: root/src/img
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-12-28 21:19:21 +0100
committerbptato <nincsnevem662@gmail.com>2023-12-28 21:23:26 +0100
commitd91d1dda2ad1219b3b798eafc14151811ed9a1b3 (patch)
treef82d8da0763f0dbc62dedb2aa9aaa51114d2aad9 /src/img
parentb035e53d641d71fab89f92cd8d5188501be0d058 (diff)
downloadchawan-d91d1dda2ad1219b3b798eafc14151811ed9a1b3.tar.gz
Compile with styleCheck:usages
much better
Diffstat (limited to 'src/img')
-rw-r--r--src/img/png.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/img/png.nim b/src/img/png.nim
index bde2cecb..fdf02197 100644
--- a/src/img/png.nim
+++ b/src/img/png.nim
@@ -54,7 +54,7 @@ proc writeIHDR(writer: var PNGWriter, width, height: uint32,
     bitDepth: uint8, colorType: PNGColorType,
     compressionMethod, filterMethod, interlaceMethod: uint8) =
   writer.writeStr(PNGSignature)
-  var ihdr {.noInit.}: array[13, uint8]
+  var ihdr {.noinit.}: array[13, uint8]
   var pw = pngInt(width)
   var ph = pngInt(height)
   copyMem(addr ihdr[0], addr pw[0], 4)
@@ -304,7 +304,7 @@ proc writepxs(reader: var PNGReader, crow: var openArray[RGBAColor]) =
       j = j mod 8
       crow[x] = rgba(n, n, n, 255u8)
   of TRUECOLOR:
-    let step = int(reader.bitdepth) div 8
+    let step = int(reader.bitDepth) div 8
     var i = 0
     for x in 0 ..< crow.len:
       let r = reader.uprow[i]