Browse Source

unnecessary trunc

Johann ELSASS 5 years ago
parent
commit
82a95fc8f3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bgraspriteanimation.pas

+ 1 - 1
bgraspriteanimation.pas

@@ -467,7 +467,7 @@ end;
 
 function TBGRASpriteAnimation.DoCalculateSize(AValue: cardinal): cardinal;
 begin
-  Result := trunc(AValue div FSpriteCount);
+  Result := AValue div FSpriteCount;
 end;
 
 procedure TBGRASpriteAnimation.DoSpriteResampleFilter(ABitmap: TBGRABitmap);