[longomatch] Fix colors conversion



commit 35acc952d9372c7329e8cd07b9349c634d1560d1
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue Jun 10 11:12:55 2014 +0200

    Fix colors conversion

 LongoMatch.GUI.Helpers/Misc.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/LongoMatch.GUI.Helpers/Misc.cs b/LongoMatch.GUI.Helpers/Misc.cs
index 8bcbd6f..95f301d 100644
--- a/LongoMatch.GUI.Helpers/Misc.cs
+++ b/LongoMatch.GUI.Helpers/Misc.cs
@@ -104,13 +104,13 @@ namespace LongoMatch.Gui.Helpers
                static public double ByteToDouble (byte val) {
                        return (double) (val) / byte.MaxValue;
                }
-
+               
                public static Color ToGdkColor(LColor color) {
-                       return new Color (color.R, color.G, color.G);
+                       return new Color (color.R, color.G, color.B);
                }
                
                public static LColor ToLgmColor(Color color) {
-                       return LColor.ColorFromUShort (color.Red, color.Green, color.Red);
+                       return LColor.ColorFromUShort (color.Red, color.Green, color.Blue);
                }
                
                public static ListStore FillImageFormat (ComboBox formatBox, VideoStandard def) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]