mirror of
https://git.eden-emu.dev/archive/citron
synced 2026-03-23 09:59:39 -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();
|
||||
|
||||
setMinimumSize(280, 220);
|
||||
resize(320, 280);
|
||||
const bool is_gamescope = !qgetenv("GAMESCOPE_WIDTH").isEmpty() || qgetenv("XDG_CURRENT_DESKTOP") == "gamescope";
|
||||
if (is_gamescope) {
|
||||
setMinimumSize(240, 180);
|
||||
resize(280, 240);
|
||||
} else {
|
||||
setMinimumSize(280, 220);
|
||||
resize(320, 280);
|
||||
}
|
||||
|
||||
UpdatePosition();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user