]> gitweb.factorcode.org Git - factor.git/commitdiff
images.gif: the Graphics Control Block is OPTIONAL in the GIF spec.
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 27 Jan 2011 01:23:30 +0000 (17:23 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 27 Jan 2011 01:23:30 +0000 (17:23 -0800)
extra/images/gif/gif.factor

index b06210fc00a83d86c0dd7db5039c868ce4dac058..8d4b118d161f8796ce19df621947e846372a83f6 100644 (file)
@@ -140,7 +140,8 @@ ERROR: unimplemented message ;
 : sort? ( image -- ? ) flags>> 5 bit? ; inline
 : color-table-size ( image -- ? ) flags>> 3 bits 1 + 2^ 3 * ; inline
 : transparency? ( image -- ? )
-    graphic-control-extensions>> first flags>> 0 bit? ; inline
+    graphic-control-extensions>>
+    [ f ] [ first flags>> 0 bit? ] if-empty ; inline
 
 : color-resolution ( image -- ? ) flags>> -4 shift 3 bits ; inline