PNGReader.st
changeset 3601 05caf7f1e324
parent 3599 9bc697bd01d9
child 3603 f961a8175037
child 3607 a1b3d6654923
equal deleted inserted replaced
3599:9bc697bd01d9 3601:05caf7f1e324
   661     depth == 16 ifTrue:[
   661     depth == 16 ifTrue:[
   662         srcIndex := 1.
   662         srcIndex := 1.
   663         dstIndex := (y * bytesPerScanline) + (startX*2) + 1.
   663         dstIndex := (y * bytesPerScanline) + (startX*2) + 1.
   664 
   664 
   665         1 to:nPixels do:[:n |
   665         1 to:nPixels do:[:n |
   666             data wordAt:dstIndex put:(thisScanline wordAt:srcIndex).
   666             data unsignedInt16At:dstIndex put:(thisScanline unsignedInt16At:srcIndex).
   667             srcIndex := srcIndex + 2.
   667             srcIndex := srcIndex + 2.
   668             dstIndex := dstIndex + (incX * 2)
   668             dstIndex := dstIndex + (incX * 2)
   669         ].
   669         ].
   670         ^ self.
   670         ^ self.
   671     ].
   671     ].