mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-04 20:15:44 +00:00
fix(gamescope): SDR games keep their brightness while Steam's overlays are composited over them
This commit is contained in:
1 parent
f3f410059d
commit
27e2067b2d
1 file changed
+4
@@ -569,6 +569,10 @@ if [ -z "${DD_INSIDE:-}" ]; then
|
||||
fi
|
||||
[ "$mode" = steam ] && args+=(--default-touch-mode 4)
|
||||
[ "${DD_HDR:-0}" = 1 ] && args+=(--hdr-enabled)
|
||||
# An SDR game reaches Android as its own SDR buffer, but whenever gamescope composites (a Steam
|
||||
# toast, the volume slider) an HDR output encodes the frame in PQ, which the display tone-maps
|
||||
# darker and shifted in colour. The output turns HDR only while a window presents HDR.
|
||||
export gamescope_hdr_content_driven=1
|
||||
[ -n "${DD_GAMESCOPE_ARGS:-}" ] && read -r -a _dd_extra <<<"$DD_GAMESCOPE_ARGS" && args+=("${_dd_extra[@]}")
|
||||
if [ "$mode" = steam ] && [ "${DD_MANGOAPP:-1}" = 1 ] \
|
||||
&& [ "${DD_STEAM_UI:-}" != desktop ] && command -v mangoapp >/dev/null 2>&1; then
|
||||
|
||||
Reference in new issue
Block a user