cap: explicitly set the image's component-type

db4
Keith Lazuka 2009-10-06 16:49:23 -04:00
parent 6e8e296b99
commit f60bcc7dc1
1 changed files with 1 additions and 0 deletions

View 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 ;