BGRABitmap version 11.6.6 compiles without problems in Lazarus trunk (4.99) and FPC 3.2-fixes.
So setting dependencies on the compiler itself will break other configurations. I think you would need to set a dependency on both Lazarus and FPC versions
Yes
paweld, with version value 3.2, the directive would redefine the functions.
Strange I tested the dev branch with 4.0rc2 and it compiled...
Yes
lainz, I presume this would as well be FPC 3.2, because it is distributed with Lazarus 4.0.
Hum, here, with last commits from fixes_3_2 I get that TPointF error.
And the patch {$if FPC_FULLVERSION <= 30203} did not help.
Fred vS, it seems you're rather having a problem with
RectF function in LazPaint code. Or do you really mean you're getting the exact same error message as
timppl?
Regarding the error
lazpaint/ugraph.pas(1209,20) Error: (3026) Wrong number of parameters specified for call to "RectF"
Found declaration: RectF(Single;Single;Single;Single):<record type>;
Does it solve the problem to prefix, on line 1208 of
ugraph.pas,
RectF function with
"BGRABitmapTypes." like this?
for pt in APoints do
rF := rF.Union(BGRABitmapTypes.RectF(pt + PointF(0.5, 0.5) - PointF(w, w),
pt + PointF(0.5, 0.5) + PointF(w, w)));
Of couuuurse, it is a bad workaround but it is nice that only this code has problems.
Well it's good to know the scope of the compile error.
