mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-09 05:58:53 +02:00
MG: added patch from Andrew
git-svn-id: trunk@843 -
This commit is contained in:
parent
0c05be6552
commit
960069d6bd
@ -5525,7 +5525,11 @@ begin
|
|||||||
//write(' TgtkObject.CreateDefaultBrush ->');
|
//write(' TgtkObject.CreateDefaultBrush ->');
|
||||||
Result := NewGDIObject(gdiBrush);
|
Result := NewGDIObject(gdiBrush);
|
||||||
Result^.GDIBrushFill := GDK_SOLID;
|
Result^.GDIBrushFill := GDK_SOLID;
|
||||||
gdk_color_white(gdk_colormap_get_system, @Result^.GDIBrushColor);
|
Result^.GDIBrushColor.ColorRef := 0;
|
||||||
|
Result^.GDIBrushColor.Colormap := gdk_colormap_get_system;
|
||||||
|
gdk_color_white(Result^.GDIBrushColor.Colormap, @Result^.GDIBrushColor.Color);
|
||||||
|
With Result^.GDIBrushColor.Color do
|
||||||
|
Result^.GDIBrushColor.ColorRef := RGB(GetGValue(Red), GetGValue(Green), GetGValue(Blue));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
@ -5563,7 +5567,11 @@ begin
|
|||||||
//write(' TgtkObject.CreateDefaultPen ->');
|
//write(' TgtkObject.CreateDefaultPen ->');
|
||||||
Result := NewGDIObject(gdiPen);
|
Result := NewGDIObject(gdiPen);
|
||||||
Result^.GDIPenStyle := PS_SOLID;
|
Result^.GDIPenStyle := PS_SOLID;
|
||||||
gdk_color_black(gdk_colormap_get_system, @Result^.GDIPenColor);
|
Result^.GDIPenColor.ColorRef := 0;
|
||||||
|
Result^.GDIPenColor.Colormap := gdk_colormap_get_system;
|
||||||
|
gdk_color_black(Result^.GDIPenColor.Colormap, @Result^.GDIPenColor.Color);
|
||||||
|
With Result^.GDIPenColor.Color do
|
||||||
|
Result^.GDIPenColor.ColorRef := RGB(GetGValue(Red), GetGValue(Green), GetGValue(Blue));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
@ -5837,6 +5845,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.218 2002/09/18 17:07:28 lazarus
|
||||||
|
MG: added patch from Andrew
|
||||||
|
|
||||||
Revision 1.217 2002/09/16 17:34:37 lazarus
|
Revision 1.217 2002/09/16 17:34:37 lazarus
|
||||||
MG: fixed mem leak in TComboBox
|
MG: fixed mem leak in TComboBox
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user