foxygit / doom Log in
commit cd8cf5f1c8c0e6a86ddc3322f33acc29698009f5
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Fri Jan 15 18:51:35 2010 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Fri Jan 15 18:51:35 2010 +0000

    Center the launcher window and config window on startup.

    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 1815
---
 pkg/osx/IWADController.m  | 2 ++
 pkg/osx/LauncherManager.m | 1 +
 2 files changed, 3 insertions(+)

diff --git a/pkg/osx/IWADController.m b/pkg/osx/IWADController.m
index f1860301..783ee38f 100644
--- a/pkg/osx/IWADController.m
+++ b/pkg/osx/IWADController.m
@@ -250,6 +250,8 @@ static NSString *IWADFilenames[NUM_IWAD_TYPES + 1] =

 - (void) awakeFromNib
 {
+    [self->configWindow center];
+
     // Set configuration for all IWADs from configuration file.

     [self setIWADConfig];
diff --git a/pkg/osx/LauncherManager.m b/pkg/osx/LauncherManager.m
index 0cde9f6e..26684811 100644
--- a/pkg/osx/LauncherManager.m
+++ b/pkg/osx/LauncherManager.m
@@ -304,6 +304,7 @@ static NSString *AppendQuotedFilename(NSString *str, NSString *fileName)
 {
     [self->packageLabel setStringValue: @PACKAGE_STRING];
     [self->launcherWindow setTitle: @PACKAGE_NAME " Launcher"];
+    [self->launcherWindow center];
     [self setConfig];
 }