aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/DebugLogAnalyzer
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-12-13 12:53:08 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-12-13 12:53:08 +0100
commit8f33514940cfd7dc539ff8a0ca207a029b15a4b9 (patch)
tree852c4cad66db863d53b49a2768d2d5c637d23c8c /Samples/DebugLogAnalyzer
parent035ef61b3233c0a85caf42260f3cd1c1e1a01d54 (diff)
binding tests + wip
Diffstat (limited to 'Samples/DebugLogAnalyzer')
-rw-r--r--Samples/DebugLogAnalyzer/DbgEventWidget.cs2
-rw-r--r--Samples/DebugLogAnalyzer/DbgLogViewer.cs4
2 files changed, 3 insertions, 3 deletions
diff --git a/Samples/DebugLogAnalyzer/DbgEventWidget.cs b/Samples/DebugLogAnalyzer/DbgEventWidget.cs
index 1528e205..b2af84dd 100644
--- a/Samples/DebugLogAnalyzer/DbgEventWidget.cs
+++ b/Samples/DebugLogAnalyzer/DbgEventWidget.cs
@@ -97,7 +97,7 @@ namespace Crow
ctx.SetSource (dbge.Color);
if (dbge.IsSelected) {
ctx.FillPreserve ();
- ctx.SetSourceRGB (1, 1, 1);
+ ctx.SetSource (1, 1, 1);
ctx.Stroke ();
}else
ctx.Fill ();
diff --git a/Samples/DebugLogAnalyzer/DbgLogViewer.cs b/Samples/DebugLogAnalyzer/DbgLogViewer.cs
index 4b7a108a..0d6bdfa9 100644
--- a/Samples/DebugLogAnalyzer/DbgLogViewer.cs
+++ b/Samples/DebugLogAnalyzer/DbgLogViewer.cs
@@ -295,7 +295,7 @@ namespace Crow
if (g.yIndex == 0)
gr.SetSource (Crow.Colors.LightSalmon);
else
- Foreground.SetAsSource (gr);
+ Foreground.SetAsSource (IFace, gr);
gr.MoveTo (penX, penY - gr.FontExtents.Descent);
gr.ShowText (g.name + gIdx);
@@ -399,7 +399,7 @@ namespace Crow
r = new Rectangle (cb.Left, (int)y, cb.Width, (int)fe.Height);
ctx.Operator = Cairo.Operator.Add;
- ctx.SetSourceRGBA (0.1, 0.1, 0.1, 0.4);
+ ctx.SetSource (0.1, 0.1, 0.1, 0.4);
ctx.Rectangle (ContextCoordinates (r));
ctx.Fill ();
}