win32: fix compilation after r57929 #e58e0a48d1

git-svn-id: trunk@57932 -
This commit is contained in:
ondrej 2018-05-13 21:37:52 +00:00
parent 83cb5d2560
commit c49ee01dbe

View File

@ -45,8 +45,6 @@ type
AContentRect: PRect = nil); override;
procedure DrawIcon(DC: HDC; Details: TThemedElementDetails; const R: TRect;
himl: HIMAGELIST; Index: Integer); override;
procedure DrawIcon(ACanvas: TPersistent; Details: TThemedElementDetails;
const P: TPoint; AImageList: TPersistent; Index: Integer); override;
procedure DrawText(DC: HDC; Details: TThemedElementDetails;
const S: String; R: TRect; Flags, Flags2: Cardinal); override;
@ -400,21 +398,6 @@ begin
inherited;
end;
procedure TWin32ThemeServices.DrawIcon(ACanvas: TPersistent;
Details: TThemedElementDetails; const P: TPoint; AImageList: TPersistent;
Index: Integer);
{var
ImageList: TCustomImageList absolute AImageList;
}
begin
{ if ThemesEnabled then
DrawIcon(TCanvas(ACanvas).Handle, Details,
Rect(P.X, P.Y, P.X + ImageList.Width, P.Y + ImageList.Width),
ImageList.Handle, Index)
else}
inherited;
end;
function TWin32ThemeServices.HasTransparentParts(Details: TThemedElementDetails): Boolean;
begin
if ThemesEnabled then