blikblum/luipack

Cannot compile CairoLCL: Identifier not found TGtk2DeviceContext

Closed this issue · 2 comments

Hello!

I try to install TCairoPaintBox on Lazarus 2.2.4 (Linux) and I get an error here:

// cairolcl.inc
function CreateSurfaceFromDC(DC: HDC): Pcairo_surface_t;
var
  DeviceContext: TGtk2DeviceContext absolute DC;

I replaced TGtk2DeviceContext with TGtkDeviceContext and it seems to solve the problem.

Regards.

Roland

Can you create a Pull Request?

Here you are.

#36

I am not a git expert, so I hope that this is what you expect.