Skip to content

Commit

Permalink
Center application window
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbata committed Oct 3, 2023
1 parent d03bc3f commit 7838847
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/awt/DoomFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ public void turnOn() {
* JFrame's size is auto-set here.
*/
pack();

// center frame
setLocationRelativeTo(null);

setVisible(true);

// Gently tell the eventhandler to wake up and set itself.
Expand Down
2 changes: 1 addition & 1 deletion src/i/Strings.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package i;

public final class Strings {
public static final String MOCHA_DOOM_TITLE="Mocha Doom Alpha 1.6.2";
public static final String MOCHA_DOOM_TITLE="Mocha Doom Alpha 1.6.3";

public static final String MODIFIED_GAME=
("===========================================================================\n"+
Expand Down

0 comments on commit 7838847

Please sign in to comment.