Skip to content

Commit

Permalink
[Controls] Adjusting the animated codec for future releases
Browse files Browse the repository at this point in the history
Co-Authored-By: Paulo César Botelho Barbosa <[email protected]>
  • Loading branch information
viniciusfbb and paulocesarbot committed May 26, 2024
1 parent 07a109a commit f1c1d72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/FMX/FMX.Skia.pas
Original file line number Diff line number Diff line change
Expand Up @@ -3746,7 +3746,11 @@ function TSkDefaultAnimationCodec.GetDuration: Double;

function TSkDefaultAnimationCodec.GetFPS: Double;
begin
{$IF CompilerVersion >= 37}
Result := GlobalPreferredFramesPerSecond;
{$ELSE}
Result := TAnimation.DefaultAniFrameRate;
{$ENDIF}
end;

function TSkDefaultAnimationCodec.GetIsStatic: Boolean;
Expand Down

0 comments on commit f1c1d72

Please sign in to comment.