[gbrainy] Fix icon height position



commit 40499e1ffaeecf172c2d1066fed89b1caf2ffbad
Author: Jordi Mas <jmas softcatala org>
Date:   Sun Jun 19 12:04:03 2011 +0200

    Fix icon height position

 src/Clients/Classical/Widgets/GameDrawingArea.cs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/Clients/Classical/Widgets/GameDrawingArea.cs b/src/Clients/Classical/Widgets/GameDrawingArea.cs
index e09f48d..c31c900 100644
--- a/src/Clients/Classical/Widgets/GameDrawingArea.cs
+++ b/src/Clients/Classical/Widgets/GameDrawingArea.cs
@@ -225,7 +225,9 @@ namespace gbrainy.Clients.Classical.Widgets
 				Solution, max_width - icon_w);
 			cr.Stroke ();
 
-			DrawSolutionIcon (cr, icon_x, 1 - box_height_scaled, icon_w, icon_h);
+			DrawSolutionIcon (cr, icon_x,
+				(1 - box_height_scaled - text_margin) + ((box_height_scaled - icon_h) / 2),
+				icon_w, icon_h);
 			cr.Restore ();
 		}
 



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