Compare commits

...

2 Commits

Author SHA1 Message Date
raven02
7ee86e7478 Merge 19b9008f37 into 1db1e013e0 2018-09-21 04:39:36 +00:00
raven02
19b9008f37 Set default windows size to native res 1280x720 2018-09-20 22:17:17 +08:00

View File

@@ -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() {