#REFACTORING by cg
class: GIFReader
changed:
#save:onStream:
#writeMaskExtensionHeaderFor:
use the new nextPutIntxxLSB messages
--- a/GIFReader.st Tue Apr 19 15:29:18 2016 +0200
+++ b/GIFReader.st Wed Apr 20 13:00:29 2016 +0200
@@ -975,7 +975,7 @@
outStream nextPut:4. "/ subBlockSize
outStream nextPut:1. "/ animationType
- outStream nextPutInt16:1 MSB:false. "/ animationTime
+ outStream nextPutInt16LSB:1. "/ animationTime
outStream nextPut:maskPixel. "/ animationMask
outStream nextPut:0.
@@ -1059,7 +1059,7 @@
outStream nextPut:16rF9. "/ graphic control extension
outStream nextPut:4. "/ sub block size
outStream nextPut:0. "/ animation type 0
- outStream nextPutInt16:(eachFrame delay / 10) rounded asInteger MSB:false.
+ outStream nextPutInt16LSB:(eachFrame delay / 10) rounded asInteger.
outStream nextPut:0. "/ animation mask
outStream nextPut:0. "/ subblock size