mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-05 17:18:25 +02:00
wince: filter LogPen styles by supported in CreatePenIndirect (bug #0014749)
git-svn-id: trunk@22094 -
This commit is contained in:
parent
07fc3954f6
commit
484862674f
@ -574,9 +574,10 @@ function TWinCEWidgetSet.CreatePenIndirect(const LogPen: TLogPen): HPEN;
|
|||||||
var
|
var
|
||||||
LP: TLogPen;
|
LP: TLogPen;
|
||||||
begin
|
begin
|
||||||
LP := LogPen;
|
|
||||||
Lp.lopnColor := Windows.COLORREF(ColorToRGB(Lp.lopnColor));
|
|
||||||
Assert(False, 'Trace:[TWinCEWidgetSet.CreatePenIndirect]');
|
Assert(False, 'Trace:[TWinCEWidgetSet.CreatePenIndirect]');
|
||||||
|
LP := LogPen;
|
||||||
|
LP.lopnColor := Windows.COLORREF(ColorToRGB(LP.lopnColor));
|
||||||
|
LP.lopnStyle := LP.lopnStyle and PS_STYLE_MASK;
|
||||||
Result := Windows.CreatePenIndirect(Windows.LOGPEN(LP));
|
Result := Windows.CreatePenIndirect(Windows.LOGPEN(LP));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user