Skip to content

Commit

Permalink
ui: make sure font sizes don't go smaller than 1
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed Nov 13, 2024
1 parent bdce672 commit f3cbb51
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions basis/ui/ui.factor
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ USING: accessors arrays assocs boxes classes.tuple
classes.tuple.parser combinators combinators.short-circuit
concurrency.flags concurrency.promises continuations deques
destructors dlists hash-sets.identity kernel lexer make math
math.functions namespaces parser sequences sets slots.private
strings threads ui.backend ui.gadgets ui.gadgets.private
ui.gadgets.worlds ui.gestures ui.render vectors vocabs.parser
words ;
math.functions math.order namespaces parser sequences sets
slots.private strings threads ui.backend ui.gadgets
ui.gadgets.private ui.gadgets.worlds ui.gestures ui.render
vectors vocabs.parser words ;
IN: ui

<PRIVATE
Expand Down Expand Up @@ -204,7 +204,7 @@ PRIVATE>
gadget seen ?adjoin [
"font" gadget ?offset-of-slot [
gadget swap
[ slot clone [ delta + ] change-size ]
[ slot clone [ delta + 1 max ] change-size ]
[ set-slot ] 2bi
gadget relayout
] when*
Expand Down

0 comments on commit f3cbb51

Please sign in to comment.