]> gitweb.factorcode.org Git - factor.git/commitdiff
windows.offscreen:make-bitmap-image wasn't filling in the component-type of the image...
authorJoe Groff <arcata@gmail.com>
Thu, 25 Jun 2009 14:15:04 +0000 (09:15 -0500)
committerJoe Groff <arcata@gmail.com>
Thu, 25 Jun 2009 14:15:04 +0000 (09:15 -0500)
basis/windows/offscreen/offscreen.factor

index 6e65958220b75f3c4372f77889f7404b6197ada6..fea7240bf65aa24a0e3b1e2313f6eee959ecbb88 100755 (executable)
@@ -42,6 +42,7 @@ IN: windows.offscreen
         swap >>dim
         swap >>bitmap
         BGRX >>component-order
+        ubyte-components >>component-type
         t >>upside-down? ;
 
 : with-memory-dc ( quot: ( hDC -- ) -- )
@@ -50,4 +51,4 @@ IN: windows.offscreen
 :: make-bitmap-image ( dim dc quot -- image )
     dim dc make-bitmap [ &DeleteObject drop ] dip
     quot dip
-    dim bitmap>image ; inline
\ No newline at end of file
+    dim bitmap>image ; inline