1
1
Fork 0
mirror of https://github.com/FellippeHeitor/InForm.git synced 2025-01-15 11:59:34 +00:00

Fix xp.uitheme's nondeclared variables.

This commit is contained in:
FellippeHeitor 2017-06-27 00:06:33 -03:00
parent cab9f5b131
commit 5cd8f67ce9

View file

@ -319,6 +319,7 @@ SUB __UI_DrawToggleSwitch (This AS __UI_ControlTYPE, ControlState AS _BYTE)
CaptionIndent = 0
DIM AnimationOffset AS SINGLE
AnimationOffset = __UI_MAP(TIMER - This.LastChange, 0, .2, This.Width / 2, 0)
IF AnimationOffset < 0 THEN AnimationOffset = 0
IF AnimationOffset > This.Width / 2 THEN AnimationOffset = This.Width / 2