bgrabitmap / bgracontrols

🆗 BGRA Controls is a set of graphical UI elements that you can use with Lazarus LCL applications.
https://bgrabitmap.github.io/bgracontrols/
187 stars 32 forks source link

Cannot compile in lazarus fixes, fpc fixes (BGRAKnob) #181

Closed lainz closed 4 months ago

lainz commented 4 months ago

Hi, this is the faulty line

        //compute squared distance with scalar product
        d2 := v {$if FPC_FULLVERSION < 030301} * {$ELSE} ** {$ENDIF} v;   

bgraknob.pas(222,48) Error: Incompatible types: got "TPointF" expected "Single"

lainz commented 4 months ago

Solved, maybe the cache was faulty because it showed me the asterisk as runnable code and not the double asterisk.

Now I recompiled and it works.