Skip to content

Commit

Permalink
compilation fix for FPC 3.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann ELSASS committed Jan 22, 2024
1 parent fe54c2e commit 7bd8bd1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lazpaint/tools/utoolbrush.pas
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ function TToolGenericBrush.ContinueDrawing(toolDest: TBGRABitmap; originF,
if not SubPixelAccuracy then
len := max(abs(v.x),abs(v.y))
else
len := sqrt(v*v);
len := sqrt(v**v);
minLen := round(power(BrushInfo.Size/10,0.8));
if minLen < 1 then minLen := 1;
if minLen > 5 then minLen := 5;
Expand Down
4 changes: 2 additions & 2 deletions lazpaint/uimageview.pas
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
interface

uses
Classes, SysUtils, USelectionHighlight, BGRABitmap, BGRABitmapTypes,
Classes, SysUtils, USelectionHighlight, BGRABitmap, Types, BGRABitmapTypes,
LazPaintType, UImage, UZoom, Graphics, Controls, LCLType, UImageObservation,
laztablet, LMessages;

Expand Down Expand Up @@ -145,7 +145,7 @@ TImageView = class

implementation

uses BGRATransform, LCLIntf, Types, ugraph, math, UTool, BGRAThumbnail, LCScaleDPI, Forms,
uses BGRATransform, LCLIntf, ugraph, math, UTool, BGRAThumbnail, LCScaleDPI, Forms,
UToolVectorial, ExtCtrls;

procedure InvalidateControlRect(AControl: TControl; AArea: TRect);
Expand Down
4 changes: 2 additions & 2 deletions lazpaintcontrols/lcvectorpolyshapes.pas
Original file line number Diff line number Diff line change
Expand Up @@ -815,11 +815,11 @@ procedure TCustomPolypointShape.InsertPointAuto(AShift: TShiftState);
if segmentLen > 0 then
begin
u *= 1/segmentLen;
segmentPos := (FMousePos-Points[i])*u;
segmentPos := (FMousePos-Points[i])**u;
if (segmentPos > 0) and (segmentPos< segmentLen) then
begin
n := PointF(u.y,-u.x);
segmentDist := abs((FMousePos-Points[i])*n);
segmentDist := abs((FMousePos-Points[i])**n);
if segmentDist <= bestSegmentDist then
begin
bestSegmentDist := segmentDist;
Expand Down
4 changes: 2 additions & 2 deletions lazpaintcontrols/lcvectorrectshapes.pas
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ procedure TCustomRectShape.DoMoveXAxis(ANewCoord: TPointF; AShift: TShiftState;
FOrigin := FOriginBackup;
end else
begin
newSize := AFactor*FXUnitBackup*(ANewCoord-FOriginBackup);
newSize := AFactor*FXUnitBackup**(ANewCoord-FOriginBackup);
if ssShift in AShift then
begin
FXAxis := FOriginBackup+FXUnitBackup*newSize;
Expand Down Expand Up @@ -528,7 +528,7 @@ procedure TCustomRectShape.DoMoveYAxis(ANewCoord: TPointF; AShift: TShiftState;
FOrigin := FOriginBackup;
end else
begin
newSizeY := AFactor*FYUnitBackup*(ANewCoord-FOriginBackup);
newSizeY := AFactor*FYUnitBackup**(ANewCoord-FOriginBackup);
if ssShift in AShift then
begin
FYAxis := FOriginBackup+FYUnitBackup*newSizeY;
Expand Down

0 comments on commit 7bd8bd1

Please sign in to comment.