]> gitweb.factorcode.org Git - factor.git/commitdiff
cap: explicitly set the image's component-type
authorKeith Lazuka <klazuka@gmail.com>
Tue, 6 Oct 2009 20:49:23 +0000 (16:49 -0400)
committerKeith Lazuka <klazuka@gmail.com>
Fri, 9 Oct 2009 19:58:34 +0000 (15:58 -0400)
extra/cap/cap.factor

index f43787673a4d35f4902c0fa578483265f2e49a3f..8beea056cfa633b04c57384b23090a9cae179805 100644 (file)
@@ -23,6 +23,7 @@ IN: cap
 : screenshot ( window -- bitmap )
     [ <image> ] dip
     [ gl-screenshot >>bitmap ] [ dim>> >>dim ] bi
+    ubyte-components >>component-type
     RGBA >>component-order
     t >>upside-down?
     normalize-image ;