win64: fix compilation

git-svn-id: trunk@17135 -
This commit is contained in:
paul 2008-10-27 07:43:35 +00:00
parent 92caf0d923
commit 592d0ebfd3

View File

@ -1328,8 +1328,13 @@ end;
function TWin32WidgetSet.ExtCreatePen(dwPenStyle, dwWidth: DWord;
const lplb: TLogBrush; dwStyleCount: DWord; lpStyle: PDWord): HPEN;
var
LB: Windows.LogBrush;
begin
Result := Windows.ExtCreatePen(dwPenStyle, dwWidth, Windows.TLOGBRUSH(lplb), dwStyleCount, lpStyle);
LB.lbStyle := lplb.lbStyle;
LB.lbColor := Windows.COLORREF(ColorToRGB(lplb.lbColor));
LB.lbHatch := lplb.lbHatch;
Result := Windows.ExtCreatePen(dwPenStyle, dwWidth, LB, dwStyleCount, lpStyle);
end;
{------------------------------------------------------------------------------