#REFACTORING
authorClaus Gittinger <cg@exept.de>
Tue, 15 Mar 2016 22:45:24 +0100
changeset 3601 05caf7f1e324
parent 3599 9bc697bd01d9
child 3602 1b88866d2807
#REFACTORING class: PNGReader changed: #copyPixelsGray:at:by: (send #unsignedInt16At: instead of #wordAt:, send #unsignedInt16At:put: instead of #wordAt:put:)
PNGReader.st
--- 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)
         ].