Skip to content

Commit

Permalink
GameScope: Update --hdr-sdr-content-nits default value (#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonic2kk authored Jul 9, 2023
1 parent 5b38e7a commit 17f9ba3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
PREFIX="/usr"
PROGNAME="SteamTinkerLaunch"
NICEPROGNAME="Steam Tinker Launch"
PROGVERS="v14.0.20230710-1"
PROGVERS="v14.0.20230710-2"
PROGCMD="${0##*/}"
SHOSTL="stl"
GHURL="https://github.com"
Expand Down Expand Up @@ -9970,7 +9970,7 @@ function setGameScopeVars {
# HDR Wide Gammut for SDR (--hdr-wide-gammut-for-sdr) - Checkbox
GSHDRWGFS="$( getGameScopeArg "$GAMESCOPE_ARGS" "--hdr-wide-gammut-for-sdr" "$GSHDRWGFS" "1" "0" )"

# HDR SDR Content Nits (--hdr-sdr-content-nits) -- Defaults to 203 -- Numberbox
# HDR SDR Content Nits (--hdr-sdr-content-nits) -- Defaults to 400 -- Numberbox
GSHDRSCNITS="$( getGameScopeArg "$GAMESCOPE_ARGS" "--hdr-sdr-content-nits" "$GSHDRSCNITS" "1" "0" )"

# HDR Inverse Tone Mapping Enabled (--hdr-itm-enable) -- Checkbox
Expand All @@ -9989,6 +9989,9 @@ function setGameScopeVars {
#
# Like `GSHDRITMSDRNITS`, we default to 0 because we don't want to always pass a value
GSHDRITMTGTNITS="$( getGameScopeArg "$GAMESCOPE_ARGS" "--hdr-itm-target-nits" "$GSHDRITMTGTNITS" "" "0" "num" )"

# There is a --sdr-gamut-wideness option which takes a (float?) value between 0 and 1. Not sure how this is used or what the default is,
# so it is not added for now, but it could be added in future if requested/once more is known about it
}

function getGameScopeVROpts {
Expand Down Expand Up @@ -10378,8 +10381,8 @@ function GameScopeGui {
writelog "WARN" "${FUNCNAME[0]} - GSHDRWGFS (--hdr-wide-gammut-for-sdr) option for GameScope enabled but HDR was not enabled - Ignoring as this option would have no effect"
fi
fi
if [ ! "$GSHDRSCNITS" == "203" ]; then
# Only pass value if nits != 203 && HDR enabled
if [ ! "$GSHDRSCNITS" == "400" ]; then
# Only pass value if nits != 400 && HDR enabled (400 is the default)
if [ "$GSHDR" == "TRUE" ] && [ "$GSHDRWGFS" == "TRUE" ]; then
GAMESCOPE_ARGS="${GAMESCOPE_ARGS} --hdr-sdr-content-nits ${GSHDRSCNITS}"
else
Expand Down

0 comments on commit 17f9ba3

Please sign in to comment.