[longomatch] Fix the conversion from Gdk.Color to Cairo.Color
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Fix the conversion from Gdk.Color to Cairo.Color
- Date: Wed, 29 Sep 2010 20:46:27 +0000 (UTC)
commit 960a9f6fbd75b9e924d8d10d06b25236e6449a50
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue Sep 28 17:55:24 2010 +0200
Fix the conversion from Gdk.Color to Cairo.Color
LongoMatch/Gui/Component/DrawingWidget.cs | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch/Gui/Component/DrawingWidget.cs b/LongoMatch/Gui/Component/DrawingWidget.cs
index 6c5bd69..b315612 100644
--- a/LongoMatch/Gui/Component/DrawingWidget.cs
+++ b/LongoMatch/Gui/Component/DrawingWidget.cs
@@ -118,7 +118,9 @@ namespace LongoMatch.Gui.Component
public Gdk.Color LineColor {
set {
- lineColor = new Cairo.Color(value.Red,value.Green,value.Blue);
+ lineColor = new Cairo.Color((double)value.Red/ushort.MaxValue,
+ (double)value.Green/ushort.MaxValue,
+ (double)value.Blue/ushort.MaxValue);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]