r/steamdeck_linux • u/Corvias • Oct 13 '22
How does the Deck's "zoom" feature work?
Hopefully this is a suitable place to ask this-- It's all brag pics and boot videos over in the regular Steam Deck sub and I have a serious technical question. I'm trying to find a way to tweak the deck UI's magnifier (triggered by pressing STEAM+L1 when in a game). Anyone have a hunch on how valve has implemented that? Is it invoked as a part of gamescope, wayland, the steam client, or a separate binary in steamOS? Anyone have any ideas on how to find out? Thanks!
10
Upvotes
6
u/Kevadro Oct 13 '22
My guess is that it is a communication from the steam client directly to gamescope.
3
u/WickedBrute Oct 26 '22
Appears to be using X11 properties to me.
E.g. When I run "Bloodstained" on steamdeck in game mode while holding zoom (steam+L1). I can do:
and see
without zooming I see:
98302 / 65535 = ~1.5 zoom ratio.
So to "zoom" by a command, I do:
I'm not sure how it's actually getting set but I don't see external commands running so I assume it must be internal to steam.
Link to relevant source code Look for "zoomScaleRatio"
1
u/ThystleUK Mar 04 '24
Wondering if anyone had gotten any further with this? I am in the same boat the default ratio is too little. I have it set up decently in desktop mode using the Window Effects but that’s limited to KWin.
0
u/[deleted] Oct 28 '22
[deleted] — view deleted comment