]> gitweb.factorcode.org Git - factor.git/commitdiff
images.loader.gtk: fix fall-through in case problem in image>GdkPixbuf
authorBjörn Lindqvist <bjourne@gmail.com>
Fri, 10 Oct 2014 09:14:57 +0000 (11:14 +0200)
committerDoug Coleman <doug.coleman@gmail.com>
Fri, 10 Oct 2014 17:55:45 +0000 (10:55 -0700)
basis/images/loader/gtk/gtk.factor

index 3e020f18751453a55b92f66ebb0ad503a1032ae5..095fcea72c0dc96e260cd714d75499e5c095ba06 100644 (file)
@@ -65,7 +65,7 @@ CONSTANT: bits>components {
         [ bitmap>> ]
         [ drop GDK_COLORSPACE_RGB ]
         [ has-alpha? ]
-        [ bytes-per-component 8 * ]
+        [ component-type>> bytes-per-component 8 * ]
         [ dim>> first2 ]
         [ rowstride ]
     } cleave f f gdk_pixbuf_new_from_data ;