mirror of
https://git.eden-emu.dev/archive/citron
synced 2026-04-19 19:20:46 -04:00
fix(overhaul): UI and resolution bugs for Steam Deck (Gamescope)
Signed-off-by: Collecting <collecting@noreply.localhost>
This commit is contained in:
@@ -68,8 +68,15 @@ MultiplayerRoomOverlay::MultiplayerRoomOverlay(QWidget* parent)
|
|||||||
}
|
}
|
||||||
UpdateTheme();
|
UpdateTheme();
|
||||||
|
|
||||||
setMinimumSize(280, 220);
|
const bool is_gamescope = !qgetenv("GAMESCOPE_WIDTH").isEmpty() || qgetenv("XDG_CURRENT_DESKTOP") == "gamescope";
|
||||||
resize(320, 280);
|
if (is_gamescope) {
|
||||||
|
setMinimumSize(240, 180);
|
||||||
|
resize(280, 240);
|
||||||
|
} else {
|
||||||
|
setMinimumSize(280, 220);
|
||||||
|
resize(320, 280);
|
||||||
|
}
|
||||||
|
|
||||||
UpdatePosition();
|
UpdatePosition();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user