mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 18:29:21 +02:00
Patch from bug #26748 Improved CreateBrushIndirect workaround
git-svn-id: trunk@46732 -
This commit is contained in:
parent
c4a1f0c0e8
commit
26979ca90a
@ -754,12 +754,13 @@ begin
|
||||
LB.lbHatch := LogBrush.lbHatch;
|
||||
//DebugLn(Format('Trace:> [TWinCEWidgetSet.CreateBrushIndirect] Style: %d, Color: %8x', [lb.lbStyle, lb.lbColor]));
|
||||
|
||||
if lb.lbStyle= BS_NULL then
|
||||
Result := Windows.GetStockObject(NULL_BRUSH)
|
||||
else if lb.lbStyle = BS_DIBPATTERNPT then
|
||||
Result := CreateDIBPatternBrushPt(pointer(lb.lbHatch), lb.lbColor)
|
||||
case lb.lbStyle of
|
||||
BS_NULL: Result := Windows.GetStockObject(NULL_BRUSH);
|
||||
BS_DIBPATTERNPT: Result := CreateDIBPatternBrushPt(pointer(lb.lbHatch), lb.lbColor);
|
||||
BS_PATTERN: Result := CreatePatternBrush(lb.lbHatch);
|
||||
else { lb.lbStyle = BS_SOLID }
|
||||
Result := Windows.CreateSolidBrush(LB.lbColor);
|
||||
Result := Windows.CreateSolidBrush(LB.lbColor)
|
||||
end
|
||||
|
||||
//DebugLn(Format('Trace:< [TWinCEWidgetSet.CreateBrushIndirect] Got --> %x', [Result]));
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user