Set default windows size to native res 1280x720
This commit is contained in:
@@ -321,7 +321,6 @@ void GMainWindow::InitializeHotkeys() {
|
||||
}
|
||||
|
||||
void GMainWindow::SetDefaultUIGeometry() {
|
||||
// geometry: 55% of the window contents are in the upper screen half, 45% in the lower half
|
||||
const QRect screenRect = QApplication::desktop()->screenGeometry(this);
|
||||
|
||||
const int w = screenRect.width() * 2 / 3;
|
||||
@@ -329,7 +328,7 @@ void GMainWindow::SetDefaultUIGeometry() {
|
||||
const int x = (screenRect.x() + screenRect.width()) / 2 - w / 2;
|
||||
const int y = (screenRect.y() + screenRect.height()) / 2 - h * 55 / 100;
|
||||
|
||||
setGeometry(x, y, w, h);
|
||||
setGeometry(x, y, 1280, 720);
|
||||
}
|
||||
|
||||
void GMainWindow::RestoreUIState() {
|
||||
|
||||
Reference in New Issue
Block a user