瀏覽代碼

#227 use procedure from Types

Juliette ELSASS 9 月之前
父節點
當前提交
0921f2459b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bgraspriteanimation.pas

+ 1 - 1
bgraspriteanimation.pas

@@ -459,7 +459,7 @@ begin
   Result := Rect(0, 0, PicWidth, PicHeight);
   Result := Rect(0, 0, PicWidth, PicHeight);
 
 
   if Center then
   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;
 end;
 
 
 function TBGRASpriteAnimation.DoCalculatePosition(AValue: integer): integer;
 function TBGRASpriteAnimation.DoCalculatePosition(AValue: integer): integer;