]> gitweb.factorcode.org Git - factor.git/commitdiff
images.cocoa: set premultiplied-alpha? on loaded images
authorJoe Groff <arcata@gmail.com>
Sat, 3 Sep 2011 18:30:27 +0000 (11:30 -0700)
committerJoe Groff <arcata@gmail.com>
Sat, 3 Sep 2011 18:30:27 +0000 (11:30 -0700)
basis/images/cocoa/cocoa.factor

index a308d3f47531c7a74080420a5711cc9199f6aae2..c170b0d89705f4bd716fa074aaff76257e4b1078 100644 (file)
@@ -57,7 +57,8 @@ PRIVATE>
     image CGImageGetHeight :> h
     { w h } [
         0 0 w h <CGRect> image CGContextDrawImage
-    ] make-bitmap-image ;
+    ] make-bitmap-image
+    t >>premultiplied-alpha? ;
 
 M: ns-image stream>image
     drop stream-contents <CGImage> CGImage>image ;