You've already forked lazarus-ccr
tvplanit: Fix compilation with Laz 2.0.12 (or older? - untested).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8497 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -14,6 +14,7 @@ object frmAbout: TfrmAbout
|
|||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
OnDestroy = FormDestroy
|
OnDestroy = FormDestroy
|
||||||
Position = poScreenCenter
|
Position = poScreenCenter
|
||||||
|
LCLVersion = '2.3.0.0'
|
||||||
object ButtonPanel: TPanel
|
object ButtonPanel: TPanel
|
||||||
AnchorSideTop.Control = Panel1
|
AnchorSideTop.Control = Panel1
|
||||||
AnchorSideTop.Side = asrBottom
|
AnchorSideTop.Side = asrBottom
|
||||||
|
@ -34,7 +34,7 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF LCL}
|
{$IFDEF LCL}
|
||||||
LCLProc, LCLType, LCLIntf,
|
LCLProc, LCLType, LCLIntf, LCLVersion,
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
Windows, Messages,
|
Windows, Messages,
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
@ -52,6 +52,10 @@ uses
|
|||||||
*)
|
*)
|
||||||
Classes, SysUtils;
|
Classes, SysUtils;
|
||||||
|
|
||||||
|
{$IF LCL_FullVersion >= 2020000}
|
||||||
|
{$DEFINE HAS_ANTIALIASEDSTRETCHDRAW}
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
{ TfrmAbout }
|
{ TfrmAbout }
|
||||||
@ -155,7 +159,7 @@ begin
|
|||||||
bmp := TBitmap.Create;
|
bmp := TBitmap.Create;
|
||||||
try
|
try
|
||||||
bmp.SetSize(w, h);
|
bmp.SetSize(w, h);
|
||||||
{$IFDEF LCL}
|
{$IFDEF HAS_ANTIALIASEDSTRETCHDRAW}
|
||||||
AntiAliasedStretchDrawBitmap(FLogo, bmp, w, h);
|
AntiAliasedStretchDrawBitmap(FLogo, bmp, w, h);
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
bmp.Canvas.StretchDraw(Rect(0, 0, bmp.Width,bmp.Height), FLogo);
|
bmp.Canvas.StretchDraw(Rect(0, 0, bmp.Width,bmp.Height), FLogo);
|
||||||
|
Reference in New Issue
Block a user