shithub: choc

Download patch

ref: cd8cf5f1c8c0e6a86ddc3322f33acc29698009f5
parent: 571b9c32f5e054f131abb9c1d0d68eb4c784a764
author: Simon Howard <[email protected]>
date: Fri Jan 15 13:51:35 EST 2010

Center the launcher window and config window on startup.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1815

--- a/pkg/osx/IWADController.m
+++ b/pkg/osx/IWADController.m
@@ -250,6 +250,8 @@
 
 - (void) awakeFromNib
 {
+    [self->configWindow center];
+
     // Set configuration for all IWADs from configuration file.
 
     [self setIWADConfig];
--- a/pkg/osx/LauncherManager.m
+++ b/pkg/osx/LauncherManager.m
@@ -304,6 +304,7 @@
 {
     [self->packageLabel setStringValue: @PACKAGE_STRING];
     [self->launcherWindow setTitle: @PACKAGE_NAME " Launcher"];
+    [self->launcherWindow center];
     [self setConfig];
 }