mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 10:09:14 +02:00
Gtk3: fixed range error when assigning brush color in device context.
This commit is contained in:
parent
7613e28ec0
commit
7f92b9f77a
@ -1513,9 +1513,9 @@ begin
|
|||||||
if Assigned(FBgBrush) then
|
if Assigned(FBgBrush) then
|
||||||
FBgBrush.Free;
|
FBgBrush.Free;
|
||||||
FBgBrush := TGtk3Brush.Create;
|
FBgBrush := TGtk3Brush.Create;
|
||||||
FBgBrush.Style := BS_SOLID;
|
|
||||||
FBgBrush.Color := ColorToRGB(FBkColor);
|
|
||||||
FBgBrush.Context := Self;
|
FBgBrush.Context := Self;
|
||||||
|
FBgBrush.Style := BS_SOLID;
|
||||||
|
FBgBrush.Color := ColorToRGB(LongInt(FBkColor));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TGtk3DeviceContext.SetFont(AValue: TGtk3Font);
|
procedure TGtk3DeviceContext.SetFont(AValue: TGtk3Font);
|
||||||
|
Loading…
Reference in New Issue
Block a user