summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorSimon Howard2010-01-15 18:51:35 +0000
committerSimon Howard2010-01-15 18:51:35 +0000
commitcd8cf5f1c8c0e6a86ddc3322f33acc29698009f5 (patch)
tree9f843ef2ac0947a1e1971e178299a52c6c8ceb80 /pkg
parent571b9c32f5e054f131abb9c1d0d68eb4c784a764 (diff)
downloadchocolate-doom-cd8cf5f1c8c0e6a86ddc3322f33acc29698009f5.tar.gz
chocolate-doom-cd8cf5f1c8c0e6a86ddc3322f33acc29698009f5.tar.bz2
chocolate-doom-cd8cf5f1c8c0e6a86ddc3322f33acc29698009f5.zip
Center the launcher window and config window on startup.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1815
Diffstat (limited to 'pkg')
-rw-r--r--pkg/osx/IWADController.m2
-rw-r--r--pkg/osx/LauncherManager.m1
2 files changed, 3 insertions, 0 deletions
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];
}