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
|
||||
OnDestroy = FormDestroy
|
||||
Position = poScreenCenter
|
||||
LCLVersion = '2.3.0.0'
|
||||
object ButtonPanel: TPanel
|
||||
AnchorSideTop.Control = Panel1
|
||||
AnchorSideTop.Side = asrBottom
|
||||
|
@ -34,7 +34,7 @@ interface
|
||||
|
||||
uses
|
||||
{$IFDEF LCL}
|
||||
LCLProc, LCLType, LCLIntf,
|
||||
LCLProc, LCLType, LCLIntf, LCLVersion,
|
||||
{$ELSE}
|
||||
Windows, Messages,
|
||||
{$ENDIF}
|
||||
@ -52,6 +52,10 @@ uses
|
||||
*)
|
||||
Classes, SysUtils;
|
||||
|
||||
{$IF LCL_FullVersion >= 2020000}
|
||||
{$DEFINE HAS_ANTIALIASEDSTRETCHDRAW}
|
||||
{$ENDIF}
|
||||
|
||||
type
|
||||
|
||||
{ TfrmAbout }
|
||||
@ -155,7 +159,7 @@ begin
|
||||
bmp := TBitmap.Create;
|
||||
try
|
||||
bmp.SetSize(w, h);
|
||||
{$IFDEF LCL}
|
||||
{$IFDEF HAS_ANTIALIASEDSTRETCHDRAW}
|
||||
AntiAliasedStretchDrawBitmap(FLogo, bmp, w, h);
|
||||
{$ELSE}
|
||||
bmp.Canvas.StretchDraw(Rect(0, 0, bmp.Width,bmp.Height), FLogo);
|
||||
|
Reference in New Issue
Block a user