Don't scale toggle button icons if they're smaller than the button size

This commit is contained in:
Charles Dang 2016-08-16 21:55:16 +11:00
parent 0fd26b9dc7
commit a9116a7ed5

View file

@ -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