]> gitweb.factorcode.org Git - factor.git/commitdiff
ui: specify two places where image-name tuples are expected.
authorJohn Benediktsson <mrjbq7@gmail.com>
Mon, 15 Dec 2014 17:56:03 +0000 (09:56 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 15 Dec 2014 17:56:03 +0000 (09:56 -0800)
basis/ui/images/images.factor
basis/ui/pens/image/image.factor

index 6e1d730a9e09840045363dcdbee0cc702b72949e..99cbcc32eca3941fc807acc59710dc6a83efd5d1 100644 (file)
@@ -18,7 +18,7 @@ MEMO: cached-image ( image-name -- image ) path>> load-image ;
 
 PRIVATE>
 
-: rendered-image ( path -- texture )
+: rendered-image ( image-name -- texture )
     world get image-texture-cache
     [ cached-image { 0 0 } <texture> ] cache ;
 
index be37e6e129ba480bb486dc80261a7ac7645f4a67..b67669f21278f0cfd863c7356e741cc2faebe2ae 100644 (file)
@@ -7,7 +7,7 @@ IN: ui.pens.image
 ! Image pen
 TUPLE: image-pen image fill? ;
 
-: <image-pen> ( image -- pen ) f image-pen boa ;
+: <image-pen> ( image-name -- pen ) f image-pen boa ;
 
 M: image-pen draw-interior
     [ dim>> ] [ [ image>> ] [ fill?>> ] bi ] bi*