/lazpaint-code$ svn update
Updating '.':
At revision 447.~/lazpaint-code/bgrabitmap/bgracanvas.pas(437,13) Error: Incompatible types: got "TFPPenEndCap" expected "TPenEndCap"
error is: in
constructor TBGRAPen.Create;
...
EndCap := pecRound;When ctrl + Left click on EndCap goto "EndCap: TPenEndCap;" This is difinition in BGRACanvas.
When ctrl + Left click on pecRound goto
/fpcsource/packages/fcl-images/src/FPcanvas.pp
line 117
TFPPenEndCap = (
pecRound,
pecSquare,
pecFlat );
---------
But in /lazarus/lcl/graphics.pp
line 576
// pen end caps. valid only for geometric pens
TPenEndCap = (
pecRound,
pecSquare,
pecFlat );
Yes type name is diferent, but set of element name is same and compiler give error.
~/lazpaint-code/bgrabitmap/bgracanvas.pas(438,16) Error: Incompatible types: got "TFPPenJoinStyle" expected "TPenJoinStyle"
same problem
TPenJoinStyle & TFPPenJoinStyle
TFPPenJoinStyle = (
pjsRound,
pjsBevel,
pjsMiter
);
My idea is, this error compiler and/or IDE site

'cos Type name is diferent, it has to be, but name of element name haveto diferent too.
My suggestion one inc file and all types and variables difinitions (ofcource just globals) be in this inc file, so everyone know and easy find variable and names, and write small info each one
[HOW TO FIX this error]
in BGRACanvas line 8 (uses area)
Classes, SysUtils,
Graphics, GraphType, Types, FPImage,
FPCanvas, BGRABitmapTypes;//
old Classes, SysUtils,
FPCanvas, Graphics, GraphType, Types, FPImage, BGRABitmapTypes;//
newjust change place "FPCanvas," haveto before "Graphics,"
