Browse Source

#227 use procedure from Types

Juliette ELSASS 9 months ago
parent
commit
0921f2459b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bgraspriteanimation.pas

+ 1 - 1
bgraspriteanimation.pas

@@ -459,7 +459,7 @@ begin
   Result := Rect(0, 0, PicWidth, PicHeight);
 
   if Center then
-    OffsetRect(Result, (ImgWidth - PicWidth) div 2, (ImgHeight - PicHeight) div 2);
+    Types.OffsetRect(Result, (ImgWidth - PicWidth) div 2, (ImgHeight - PicHeight) div 2);
 end;
 
 function TBGRASpriteAnimation.DoCalculatePosition(AValue: integer): integer;