equal
deleted
inserted
replaced
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 ]. |