fix byte swapping on greyscale-alpha

Doug Coleman 2009-10-08 20:37:00 -05:00
parent 094720f086
commit a6090e717d
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ ERROR: invalid-color-type/bit-depth loading-png ;
: decode-greyscale-alpha ( loading-image -- byte-array' )
[ raw-bytes ] [ bit-depth>> ] bi 16 = [
3 group [ first3 swapd 3array ] map B{ } concat-as
4 group [ first4 [ swap ] 2dip 4array ] map B{ } concat-as
] when ;
: loading-png>bitmap ( loading-png -- bytes component-order )