Skip to content

Conversation

@suve
Copy link
Contributor

@suve suve commented Aug 15, 2025

FPC 3.2.4 defines a RectF function that takes four Single arguments. As such, calling RectF with two PointF arguments now results in a "Wrong number of parameters specified" error.

Ser82-png and others added 13 commits May 29, 2025 23:08
@circular17 circular17 changed the base branch from master to dev-lazpaint September 6, 2025 08:00
@circular17
Copy link
Collaborator

Hi @suve

Thanks for being proactive and suggesting this change.

If I understand, a RectF function was added in some unit in FPC 3.2.4 and this hides the RectF function provided by BGRABitmap.

While the workaround you propose is correct, I suggest instead to specify the unit name to find the adequate RectF function. As the function is located in BGRABitmapTypes, the call can be written as BGRABitmapTypes.RectF(...).

I let you make the change accordingly.

Note : I've changed the target branch to dev-lazpaint as the master branch is frozen to the last release.

Regards

@suve
Copy link
Contributor Author

suve commented Sep 6, 2025

Yes, using the unit name to disambiguate should also work. Sorry, I did not notice this is already fixed in the dev version.

@suve suve closed this Sep 6, 2025
@circular17
Copy link
Collaborator

circular17 commented Sep 6, 2025

Oh I just realized this change was already done on dev indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants