ui.render: small simplification

factor-shell
Björn Lindqvist 2017-07-01 07:51:10 +02:00
parent f0fac14c14
commit 3b78ec7b6f
1 changed files with 2 additions and 2 deletions

View File

@ -104,9 +104,9 @@ M: gadget gadget-foreground dup interior>> pen-foreground ;
] with-translation ;
: draw-border ( object -- )
dup boundary>> dup [
dup boundary>> [
origin get [ draw-boundary ] with-translation
] [ 2drop ] if ;
] [ drop ] if* ;
PRIVATE>