mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Move window to center
This commit is contained in:
parent
1c8ac05b06
commit
b014ecc335
1 changed files with 2 additions and 2 deletions
|
@ -25,9 +25,9 @@ MainWindow::MainWindow(QWidget *parent, bool fullscreen) :
|
|||
QDesktopWidget *desktop = QApplication::desktop();
|
||||
int screenNum = QProcessEnvironment::systemEnvironment().value("SDL_VIDEO_FULLSCREEN_HEAD", "0").toInt();
|
||||
|
||||
// Move window to top left coordinate of selected screen
|
||||
// Move window to the center of selected screen
|
||||
QRect rect = desktop->screenGeometry(screenNum);
|
||||
move(rect.topLeft());
|
||||
move((rect.width()-frameGeometry().width()) / 4, (rect.height()-frameGeometry().height()) / 4);
|
||||
|
||||
SetGameTitle("");
|
||||
emugl = new MainUI(this);
|
||||
|
|
Loading…
Add table
Reference in a new issue