mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 16:09:30 +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
|
||||
LP: TLogPen;
|
||||
begin
|
||||
LP := LogPen;
|
||||
Lp.lopnColor := Windows.COLORREF(ColorToRGB(Lp.lopnColor));
|
||||
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));
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user