You've already forked lazarus-ccr
* Fix compilation after gkk1/2 split in LCL
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1233 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1,12 +1,12 @@
|
|||||||
uses
|
uses
|
||||||
gtkdef, gdk2, GTKProc, Cairo;
|
gtk2def, gdk2, GTK2Proc, Cairo;
|
||||||
|
|
||||||
|
|
||||||
function gdk_cairo_create(drawable: PGdkDrawable): Pcairo_t cdecl external gdklib;
|
function gdk_cairo_create(drawable: PGdkDrawable): Pcairo_t cdecl external gdklib;
|
||||||
|
|
||||||
procedure AlphaBlend(Source, Destination: HDC; const R: TRect; const Target: TPoint; Mode: TBlendMode; ConstantAlpha, Bias: Integer);
|
procedure AlphaBlend(Source, Destination: HDC; const R: TRect; const Target: TPoint; Mode: TBlendMode; ConstantAlpha, Bias: Integer);
|
||||||
|
|
||||||
function GetContext(GtkDC: TGtkDeviceContext): Pcairo_t;
|
function GetContext(GtkDC: TGtk2DeviceContext): Pcairo_t;
|
||||||
begin
|
begin
|
||||||
Result := nil;
|
Result := nil;
|
||||||
if (GtkDC <> nil) and (GtkDC.Drawable <> nil) then
|
if (GtkDC <> nil) and (GtkDC.Drawable <> nil) then
|
||||||
@ -14,8 +14,8 @@ procedure AlphaBlend(Source, Destination: HDC; const R: TRect; const Target: TPo
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
SrcDC: TGtkDeviceContext absolute Source;
|
SrcDC: TGtk2DeviceContext absolute Source;
|
||||||
DestDC: TGtkDeviceContext absolute Destination;
|
DestDC: TGtk2DeviceContext absolute Destination;
|
||||||
SrcContext, DestContext: Pcairo_t;
|
SrcContext, DestContext: Pcairo_t;
|
||||||
begin
|
begin
|
||||||
case Mode of
|
case Mode of
|
||||||
|
Reference in New Issue
Block a user