Skip to content

Commit 7bd8bd1

Browse files
author
Johann ELSASS
committed
compilation fix for FPC 3.3.1
1 parent fe54c2e commit 7bd8bd1

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

lazpaint/tools/utoolbrush.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ function TToolGenericBrush.ContinueDrawing(toolDest: TBGRABitmap; originF,
327327
if not SubPixelAccuracy then
328328
len := max(abs(v.x),abs(v.y))
329329
else
330-
len := sqrt(v*v);
330+
len := sqrt(v**v);
331331
minLen := round(power(BrushInfo.Size/10,0.8));
332332
if minLen < 1 then minLen := 1;
333333
if minLen > 5 then minLen := 5;

lazpaint/uimageview.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
interface
1010

1111
uses
12-
Classes, SysUtils, USelectionHighlight, BGRABitmap, BGRABitmapTypes,
12+
Classes, SysUtils, USelectionHighlight, BGRABitmap, Types, BGRABitmapTypes,
1313
LazPaintType, UImage, UZoom, Graphics, Controls, LCLType, UImageObservation,
1414
laztablet, LMessages;
1515

@@ -145,7 +145,7 @@ TImageView = class
145145

146146
implementation
147147

148-
uses BGRATransform, LCLIntf, Types, ugraph, math, UTool, BGRAThumbnail, LCScaleDPI, Forms,
148+
uses BGRATransform, LCLIntf, ugraph, math, UTool, BGRAThumbnail, LCScaleDPI, Forms,
149149
UToolVectorial, ExtCtrls;
150150

151151
procedure InvalidateControlRect(AControl: TControl; AArea: TRect);

lazpaintcontrols/lcvectorpolyshapes.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -815,11 +815,11 @@ procedure TCustomPolypointShape.InsertPointAuto(AShift: TShiftState);
815815
if segmentLen > 0 then
816816
begin
817817
u *= 1/segmentLen;
818-
segmentPos := (FMousePos-Points[i])*u;
818+
segmentPos := (FMousePos-Points[i])**u;
819819
if (segmentPos > 0) and (segmentPos< segmentLen) then
820820
begin
821821
n := PointF(u.y,-u.x);
822-
segmentDist := abs((FMousePos-Points[i])*n);
822+
segmentDist := abs((FMousePos-Points[i])**n);
823823
if segmentDist <= bestSegmentDist then
824824
begin
825825
bestSegmentDist := segmentDist;

lazpaintcontrols/lcvectorrectshapes.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ procedure TCustomRectShape.DoMoveXAxis(ANewCoord: TPointF; AShift: TShiftState;
489489
FOrigin := FOriginBackup;
490490
end else
491491
begin
492-
newSize := AFactor*FXUnitBackup*(ANewCoord-FOriginBackup);
492+
newSize := AFactor*FXUnitBackup**(ANewCoord-FOriginBackup);
493493
if ssShift in AShift then
494494
begin
495495
FXAxis := FOriginBackup+FXUnitBackup*newSize;
@@ -528,7 +528,7 @@ procedure TCustomRectShape.DoMoveYAxis(ANewCoord: TPointF; AShift: TShiftState;
528528
FOrigin := FOriginBackup;
529529
end else
530530
begin
531-
newSizeY := AFactor*FYUnitBackup*(ANewCoord-FOriginBackup);
531+
newSizeY := AFactor*FYUnitBackup**(ANewCoord-FOriginBackup);
532532
if ssShift in AShift then
533533
begin
534534
FYAxis := FOriginBackup+FYUnitBackup*newSizeY;

0 commit comments

Comments
 (0)