From 309945235a6bfd0c16cd64b8a0ad2501d7b62b50 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Thu, 6 Dec 2018 17:36:21 +0100 Subject: wip --- src/ExtensionsMethods.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ExtensionsMethods.cs') diff --git a/src/ExtensionsMethods.cs b/src/ExtensionsMethods.cs index 340a8ceb..ecbc8a72 100644 --- a/src/ExtensionsMethods.cs +++ b/src/ExtensionsMethods.cs @@ -153,13 +153,14 @@ namespace Crow ctx.LineWidth = stroke; ctx.Stroke (); } + public static void SetSourceColor(this Cairo.Context ctx, Color c) { ctx.SetSourceRGBA(c.R,c.G,c.B,c.A); } public static void AddColorStop(this Cairo.Gradient grad, double offset, Color c) { - grad.AddColorStop (offset, new Cairo.Color (c.R, c.G, c.B, c.A)); + grad.AddColorStop (offset, c); } #endregion -- cgit v1.3.1-4-g156e