UI: stop scaling at 1.5 on a desktop (a 1440p or ultrawide screen made everything twice as big); the TV mode still scales to the screen
Sync git.upriser.nl mirror / sync (push) Skipped

This commit is contained in:
theupriser committed 2026-10-15 20:33:16 +02:00
1 parent 0bb5708769
commit e942f3264d
2 files changed
+4 -1

No files matched your search

+3 -1
View File
@@ -36,7 +36,9 @@ ApplicationWindow {
// own shape, so the bars reach the edges and the content fills it.
Item {
id: stage
readonly property real k: Math.min(win.width / 1280, win.height / 720)
// On a desktop (a window, however large) the scale stops at 1.5: a 1440p or ultrawide monitor would otherwise show
// everything twice as big. The TV mode (--fullscreen, gamescope) scales to the screen: it is read from the couch.
readonly property real k: Math.min(win.width / 1280, win.height / 720, win.fullscreen ? Infinity : 1.5)
width: win.width / k; height: win.height / k
transformOrigin: Item.TopLeft
scale: k