[longomatch] Rezise main window with respect of the screen size



commit 660ce317d3dd6f9bc0670d0491796310e3f4db17
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sat Sep 29 00:59:01 2012 +0200

    Rezise main window with respect of the screen size

 LongoMatch.GUI/Gui/MainWindow.cs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/MainWindow.cs b/LongoMatch.GUI/Gui/MainWindow.cs
index a593b1c..ecbc97b 100644
--- a/LongoMatch.GUI/Gui/MainWindow.cs
+++ b/LongoMatch.GUI/Gui/MainWindow.cs
@@ -104,6 +104,8 @@ namespace LongoMatch.Gui
 		public MainWindow(IGUIToolkit guiToolkit) :
 		base(Constants.SOFTWARE_NAME)
 		{
+			Screen screen;
+			
 			this.Build();
 			Title = Constants.SOFTWARE_NAME;
 
@@ -133,6 +135,8 @@ namespace LongoMatch.Gui
 			if (!Config.useGameUnits)
 				GameUnitsViewAction.Visible = false;
 			
+			screen = Display.Default.DefaultScreen;
+			this.Resize(screen.Width * 80 / 100, screen.Height * 80 / 100);
 		}
 
 		#endregion



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