images: don't truncate in image-dim.
parent
422bd683d3
commit
9a9ccf971b
|
@ -70,7 +70,7 @@ TUPLE: image
|
|||
: <image> ( -- image ) image new ; inline
|
||||
|
||||
: image-dim ( image -- dim )
|
||||
[ dim>> ] [ 2x?>> ] bi [ [ 2/ ] map ] when ;
|
||||
[ dim>> ] [ 2x?>> ] bi [ [ 2.0 / ] map ] when ;
|
||||
|
||||
: has-alpha? ( image -- ? ) component-order>> alpha-channel? ;
|
||||
|
||||
|
|
Loading…
Reference in New Issue