Skip to content

Commit

Permalink
Fix for shadow in fxmaterialbutton.pas
Browse files Browse the repository at this point in the history
  • Loading branch information
lainz committed Oct 26, 2016
1 parent 0039177 commit 00c09b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bgracontrolsfx.lpk
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</Optimizations>
</CodeGeneration>
</CompilerOptions>
<Version Minor="1" Release="4"/>
<Version Minor="1" Release="5"/>
<Files Count="5">
<Item1>
<Filename Value="fxbutton.pas"/>
Expand Down
1 change: 0 additions & 1 deletion bgracontrolsfx.pas
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

unit BGRAControlsFX;

{$warn 5023 off : no warning about unused units}
interface

uses
Expand Down
3 changes: 3 additions & 0 deletions fxmaterialbutton.pas
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ procedure TFXMaterialButton.UpdateShadow;
temp.Free;
end;
FNeedDraw := True;
FXLayers[0].Texture := nil;
end;

procedure TFXMaterialButton.DrawTextShadow(AHeight: integer; ATextColor: TColor);
Expand Down Expand Up @@ -558,6 +559,8 @@ procedure TFXMaterialButton.Draw;
end
else
begin
FXLayers[0].BGRA.FillTransparent;
FXLayers[0].Texture := nil;
FXLayers[1].BGRA.FillTransparent;
FXLayers[1].Texture := nil;
end;
Expand Down

0 comments on commit 00c09b0

Please sign in to comment.