1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-22 12:47:44 +00:00

When on Steam Deck, set to native resolution

This commit is contained in:
Joshua Goins 2022-10-24 15:52:31 -04:00
parent 8b81051a53
commit 812ce4ac7c

View file

@ -6,6 +6,12 @@ DesktopInterface::DesktopInterface(LauncherCore& core) {
if(oneWindow) { if(oneWindow) {
mdiArea = new QMdiArea(); mdiArea = new QMdiArea();
mdiWindow = new QMainWindow(); mdiWindow = new QMainWindow();
if(isSteamDeck) {
mdiWindow->setWindowFlag(Qt::FramelessWindowHint);
mdiWindow->setFixedSize(1280, 800);
}
mdiWindow->setWindowTitle("Combined Interface"); mdiWindow->setWindowTitle("Combined Interface");
mdiWindow->setCentralWidget(mdiArea); mdiWindow->setCentralWidget(mdiArea);
mdiWindow->show(); mdiWindow->show();