Gtk3: fixed range error when assigning brush color in device context.

This commit is contained in:
zeljan1 2025-01-22 10:31:24 +01:00
parent 7613e28ec0
commit 7f92b9f77a

View File

@ -1513,9 +1513,9 @@ begin
if Assigned(FBgBrush) then
FBgBrush.Free;
FBgBrush := TGtk3Brush.Create;
FBgBrush.Style := BS_SOLID;
FBgBrush.Color := ColorToRGB(FBkColor);
FBgBrush.Context := Self;
FBgBrush.Style := BS_SOLID;
FBgBrush.Color := ColorToRGB(LongInt(FBkColor));
end;
procedure TGtk3DeviceContext.SetFont(AValue: TGtk3Font);