lainz 8 years ago
parent
commit
f2b83c8cb3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      colorspeedbutton.pas

+ 2 - 2
colorspeedbutton.pas

@@ -168,7 +168,7 @@ var
   SIndex, FLeft: longint;
   TMP: string;
   TextFlags: integer;
-  DrawDetails: TThemedElementDetails;
+  DrawDetails, FLastDrawDetails: TThemedElementDetails;
   FixedWidth: boolean;
   FixedHeight: boolean;
   TextRect: TRect;
@@ -187,7 +187,7 @@ begin
 
   if Draw then
   begin
-    //FLastDrawDetails:=DrawDetails;
+    FLastDrawDetails:=DrawDetails;
     PaintBackground(PaintRect);
     FixedWidth := True;
     FixedHeight := True;