mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-03 14:36:09 +00:00
preferences now appear in the center
This commit is contained in:
@@ -75,7 +75,7 @@ public class PreferencesFrame extends JFrame {
|
||||
|
||||
Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
|
||||
//center on screen
|
||||
this.setLocation((int)dim.getWidth()/2-this.getWidth(), (int)dim.getHeight()/2-this.getHeight());
|
||||
this.setLocation((int)dim.getWidth()/2-this.getWidth()/2, (int)dim.getHeight()/2-this.getHeight()/2);
|
||||
|
||||
this.setVisible(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user