Skip to content

Commit

Permalink
Don't scale toggle button icons if they're smaller than the button size
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Aug 16, 2016
1 parent 0fd26b9 commit a9116a7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions data/gui/widget/toggle_button_icon.cfg
Expand Up @@ -7,10 +7,8 @@

#define _GUI_ICON SIZE
[image]
x = 0
y = 0
w = {SIZE}
h = {SIZE}
x = "((size / 2) - (image_width / 2) where size = {SIZE})"
y = "((size / 2) - (image_height / 2) where size = {SIZE})"
name = "(icon)"
[/image]
#enddef
Expand Down

0 comments on commit a9116a7

Please sign in to comment.