#REFACTORING
class: PNGReader
changed: #copyPixelsGray:at:by: (send #unsignedInt16At: instead of #wordAt:, send #unsignedInt16At:put: instead of #wordAt:put:)
--- a/PNGReader.st Tue Mar 08 18:23:24 2016 +0100
+++ b/PNGReader.st Tue Mar 15 22:45:24 2016 +0100
@@ -663,7 +663,7 @@
dstIndex := (y * bytesPerScanline) + (startX*2) + 1.
1 to:nPixels do:[:n |
- data wordAt:dstIndex put:(thisScanline wordAt:srcIndex).
+ data unsignedInt16At:dstIndex put:(thisScanline unsignedInt16At:srcIndex).
srcIndex := srcIndex + 2.
dstIndex := dstIndex + (incX * 2)
].