[longomatch] Replace ifdef's with runtime detection
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Replace ifdef's with runtime detection
- Date: Thu, 7 May 2015 17:48:10 +0000 (UTC)
commit c969570480afc2aa97f6e5cc9ffc6c49e1d32e65
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Thu May 7 19:47:29 2015 +0200
Replace ifdef's with runtime detection
LongoMatch.GUI/Gui/MainWindow.cs | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/MainWindow.cs b/LongoMatch.GUI/Gui/MainWindow.cs
index 51366a4..ee74eb2 100644
--- a/LongoMatch.GUI/Gui/MainWindow.cs
+++ b/LongoMatch.GUI/Gui/MainWindow.cs
@@ -62,9 +62,9 @@ namespace LongoMatch.Gui
Rectangle monitor_geometry = screen.GetMonitorGeometry (monitor);
// Resize to a convenient size
this.Resize (monitor_geometry.Width * 80 / 100, monitor_geometry.Height * 80 / 100);
-#if OSTYPE_OS_X
- this.Move (monitor_geometry.Width * 10 / 100, monitor_geometry.Height * 10 / 100);
-#endif
+ if (Utils.RunningPlatform () == PlatformID.MacOSX) {
+ this.Move (monitor_geometry.Width * 10 / 100, monitor_geometry.Height * 10 /
100);
+ }
}
#endregion
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]