[longomatch] Render player in the list using the PlayerObject



commit 403cb9a249aad87f70c230ca3291947ef17e56ea
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Fri Nov 14 21:34:40 2014 +0100

    Render player in the list using the PlayerObject

 LongoMatch.Drawing/PlayslistCellRenderer.cs |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/LongoMatch.Drawing/PlayslistCellRenderer.cs b/LongoMatch.Drawing/PlayslistCellRenderer.cs
index 32f9df3..95fc405 100644
--- a/LongoMatch.Drawing/PlayslistCellRenderer.cs
+++ b/LongoMatch.Drawing/PlayslistCellRenderer.cs
@@ -106,17 +106,16 @@ namespace LongoMatch.Drawing
                        Point image, text;
                        double textWidth;
 
-                       image = new Point (cellArea.Start.X + 10, cellArea.Start.Y);
-                       text = new Point (image.X + StyleConf.ListImageWidth, cellArea.Start.Y);
+                       image = new Point (cellArea.Start.X, cellArea.Start.Y);
+                       text = new Point (image.X + StyleConf.ListRowSeparator + StyleConf.ListImageWidth,
+                                         cellArea.Start.Y);
                        textWidth = cellArea.Start.X + cellArea.Width - text.X;
 
                        tk.Context = context;
                        tk.Begin ();
                        RenderBackgroundAndText (isExpanded, tk, backgroundArea, text, textWidth, 
player.ToString ());
                        /* Photo */
-                       if (player.Photo != null) {
-                               tk.DrawImage (image, StyleConf.ListImageWidth, backgroundArea.Height, 
player.Photo, true); 
-                       }
+                       RenderPlayer (tk, player, image);
                        RenderCount (Config.Style.PaletteActive, count, tk, backgroundArea, cellArea);
                        RenderSeparationLine (tk, context, backgroundArea);
                        tk.End ();


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