From 5cd8f67ce95a46e1dfe963a8b34210d469cb7941 Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Tue, 27 Jun 2017 00:06:33 -0300 Subject: [PATCH] Fix xp.uitheme's nondeclared variables. --- InForm/xp.uitheme | 1 + 1 file changed, 1 insertion(+) diff --git a/InForm/xp.uitheme b/InForm/xp.uitheme index adb6835..b76c1b7 100644 --- a/InForm/xp.uitheme +++ b/InForm/xp.uitheme @@ -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