Added PW_GS_CURSOR_SCALE_HEIGHT for gamescope
This commit is contained in:
parent
8f160515be
commit
feedb9b2c9
@ -1256,6 +1256,10 @@ msgid "Force use sdl videodriver x11, works with BACKEND SDL. (Default is "
|
|||||||
"wayland)"
|
"wayland)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "If specified, sets a base output height to linearly scale the cursor "
|
||||||
|
"against."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Change settings gamescope for"
|
msgid "Change settings gamescope for"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -1636,6 +1636,12 @@ msgstr ""
|
|||||||
"Forzar el uso del controlador de video SDL x11, funciona con el backend SDL. "
|
"Forzar el uso del controlador de video SDL x11, funciona con el backend SDL. "
|
||||||
"(Por defecto es Wayland)."
|
"(Por defecto es Wayland)."
|
||||||
|
|
||||||
|
msgid ""
|
||||||
|
"If specified, sets a base output height to linearly scale the cursor against."
|
||||||
|
msgstr ""
|
||||||
|
"Si se especifica, establece una altura de salida base para escalar "
|
||||||
|
"linealmente el cursor."
|
||||||
|
|
||||||
msgid "Change settings gamescope for"
|
msgid "Change settings gamescope for"
|
||||||
msgstr "Cambiar ajustes gamescope para"
|
msgstr "Cambiar ajustes gamescope para"
|
||||||
|
|
||||||
|
@ -1615,6 +1615,12 @@ msgstr ""
|
|||||||
"запуском), работает вместе с SDL BACKEND (используется по умолчанию в "
|
"запуском), работает вместе с SDL BACKEND (используется по умолчанию в "
|
||||||
"Wayland сессии)"
|
"Wayland сессии)"
|
||||||
|
|
||||||
|
msgid ""
|
||||||
|
"If specified, sets a base output height to linearly scale the cursor against."
|
||||||
|
msgstr ""
|
||||||
|
"Если указано, устанавливает базовую высоту вывода для линейного "
|
||||||
|
"масштабирования курсора."
|
||||||
|
|
||||||
msgid "Change settings gamescope for"
|
msgid "Change settings gamescope for"
|
||||||
msgstr "Изменить настройки Gamescope для"
|
msgstr "Изменить настройки Gamescope для"
|
||||||
|
|
||||||
|
@ -3879,6 +3879,7 @@ start_portwine () {
|
|||||||
|
|
||||||
[[ "${PW_GS_BACKEND_SDL}" == "1" ]] && PW_GAMESCOPE_ARGS_NEW+=" --backend sdl"
|
[[ "${PW_GS_BACKEND_SDL}" == "1" ]] && PW_GAMESCOPE_ARGS_NEW+=" --backend sdl"
|
||||||
[[ "${PW_GS_SDL_VIDEODRIVER_X11}" == "1" ]] && export SDL_VIDEODRIVER="x11"
|
[[ "${PW_GS_SDL_VIDEODRIVER_X11}" == "1" ]] && export SDL_VIDEODRIVER="x11"
|
||||||
|
[[ "${PW_GS_CURSOR_SCALE_HEIGHT}" == "1" ]] && PW_GAMESCOPE_ARGS_NEW+=" --cursor-scale-height 1"
|
||||||
|
|
||||||
#combobox
|
#combobox
|
||||||
if [[ "${PW_GS_SHOW_RESOLUTION}" != "disabled" ]] ; then
|
if [[ "${PW_GS_SHOW_RESOLUTION}" != "disabled" ]] ; then
|
||||||
@ -5386,16 +5387,19 @@ gui_gamescope () {
|
|||||||
PW_GS_EXPOSE_WAYLAND PW_GS_REALTIME_SCHEDULING
|
PW_GS_EXPOSE_WAYLAND PW_GS_REALTIME_SCHEDULING
|
||||||
)
|
)
|
||||||
|
|
||||||
grep -e '--mangoapp' "${PW_TMPFS_PATH}/gamescope.tmp" &>/dev/null && add_to_array "PW_GS_LIST" PW_GS_MANGOAPP
|
[[ $(<"${PW_TMPFS_PATH}/gamescope.tmp") =~ '--mangoapp' ]] && add_to_array "PW_GS_LIST" PW_GS_MANGOAPP
|
||||||
grep -e '--backend' "${PW_TMPFS_PATH}/gamescope.tmp" &>/dev/null && add_to_array "PW_GS_LIST" PW_GS_BACKEND_SDL PW_GS_SDL_VIDEODRIVER_X11
|
[[ $(<"${PW_TMPFS_PATH}/gamescope.tmp") =~ '--backend' ]] && add_to_array "PW_GS_LIST" PW_GS_BACKEND_SDL
|
||||||
|
check_wayland_session && add_to_array "PW_GS_LIST" PW_GS_SDL_VIDEODRIVER_X11
|
||||||
|
[[ $(<"${PW_TMPFS_PATH}/gamescope.tmp") =~ '--cursor-scale-height' ]] && add_to_array "PW_GS_LIST" PW_GS_CURSOR_SCALE_HEIGHT
|
||||||
|
|
||||||
GS_FILTER_CB="linear!nearest!fsr!nis!pixel"
|
|
||||||
#debian bookworm fix
|
#debian bookworm fix
|
||||||
if grep -e '-U, --fsr-upscaling' "${PW_TMPFS_PATH}/gamescope.tmp" &>/dev/null ; then
|
if [[ $(<"${PW_TMPFS_PATH}/gamescope.tmp") =~ '-U, --fsr-upscaling' ]] ; then
|
||||||
GS_FILTER_CB="fsr!nis"
|
GS_FILTER_CB="fsr!nis"
|
||||||
export PW_GS_FILTER_MODE_OLD="true"
|
export PW_GS_FILTER_MODE_OLD="true"
|
||||||
rm_from_array "PW_GS_LIST" PW_GS_FORCE_GRAB_CURSOR PW_GS_FORCE_GRAB_KEYBOARD PW_GS_HDR_ENABLE PW_GS_HDR_FORCE_SUPPORT \
|
rm_from_array "PW_GS_LIST" PW_GS_FORCE_GRAB_CURSOR PW_GS_FORCE_GRAB_KEYBOARD PW_GS_HDR_ENABLE PW_GS_HDR_FORCE_SUPPORT \
|
||||||
PW_GS_HDR_FORCE_OUTPUT
|
PW_GS_HDR_FORCE_OUTPUT
|
||||||
|
else
|
||||||
|
GS_FILTER_CB="linear!nearest!fsr!nis!pixel"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PW_GS_FULLSCREEN_INFO=${translations[Make the window fullscreen]}
|
PW_GS_FULLSCREEN_INFO=${translations[Make the window fullscreen]}
|
||||||
@ -5416,6 +5420,7 @@ gui_gamescope () {
|
|||||||
PW_GS_MANGOAPP_INFO=${translations[Launch with the mangoapp (mangohud) performance overlay enabled. You should use this instead of using mangohud on the game or gamescope.]}
|
PW_GS_MANGOAPP_INFO=${translations[Launch with the mangoapp (mangohud) performance overlay enabled. You should use this instead of using mangohud on the game or gamescope.]}
|
||||||
PW_GS_BACKEND_SDL_INFO=${translations[Use sdl backend. (by default wayland backend is used).]}
|
PW_GS_BACKEND_SDL_INFO=${translations[Use sdl backend. (by default wayland backend is used).]}
|
||||||
PW_GS_SDL_VIDEODRIVER_X11_INFO=${translations[Force use sdl videodriver x11, works with BACKEND SDL. (Default is wayland)]}
|
PW_GS_SDL_VIDEODRIVER_X11_INFO=${translations[Force use sdl videodriver x11, works with BACKEND SDL. (Default is wayland)]}
|
||||||
|
PW_GS_CURSOR_SCALE_HEIGHT_INFO=${translations[if specified, sets a base output height to linearly scale the cursor against.]}
|
||||||
|
|
||||||
unset ADD_CHK_BOX_GS
|
unset ADD_CHK_BOX_GS
|
||||||
if [[ "${GAMESCOPE_INSTALLED}" == 1 ]] ; then
|
if [[ "${GAMESCOPE_INSTALLED}" == 1 ]] ; then
|
||||||
|
@ -131,6 +131,7 @@ export PW_GS_REALTIME_SCHEDULING="0"
|
|||||||
export PW_GS_BACKEND_SDL="0"
|
export PW_GS_BACKEND_SDL="0"
|
||||||
export PW_GS_SDL_VIDEODRIVER_X11="0"
|
export PW_GS_SDL_VIDEODRIVER_X11="0"
|
||||||
export PW_GS_MANGOAPP="0"
|
export PW_GS_MANGOAPP="0"
|
||||||
|
export PW_GS_CURSOR_SCALE_HEIGHT="0"
|
||||||
###PREFIX_VERSION###
|
###PREFIX_VERSION###
|
||||||
export DOTPFX_VER="48v7"
|
export DOTPFX_VER="48v7"
|
||||||
export DEFPFX_VER="v1"
|
export DEFPFX_VER="v1"
|
||||||
|
Loading…
Reference in New Issue
Block a user