Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mikhail Tergoev
PortWINE
Commits
a7c463bd
Commit
a7c463bd
authored
Oct 10, 2025
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dpi=96 by default
parent
efd1ec6d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
37 deletions
+6
-37
functions_helper
data_from_portwine/scripts/functions_helper
+4
-19
start.sh
data_from_portwine/scripts/start.sh
+1
-18
var
data_from_portwine/scripts/var
+1
-0
No files found.
data_from_portwine/scripts/functions_helper
View file @
a7c463bd
...
...
@@ -1495,18 +1495,6 @@ convert_dec_and_hex () {
esac
}
recommend_dpi
()
{
local
height
=
$1
if
[[
-z
"
$height
"
]]
;
then
echo
"disabled"
return
1
fi
local
dpi
=
$((
height
/
11
))
((
dpi < 96
))
&&
dpi
=
"96"
echo
"
$dpi
"
}
fixes_after_update
()
{
local
fixes_path line fixes_info IFS
fixes_info
=
$1
...
...
@@ -4603,13 +4591,10 @@ fi
get_and_set_reg_file
--delete
'Software\Wine\Drivers'
'Graphics'
fi
if
[[
$PW_WINE_DPI_VALUE
!=
"disabled"
]]
;
then
if
[[
$PW_WINE_DPI_VALUE
==
"recommended"
]]
;
then
PW_RECOMMENDED_DPI
=
$(
recommend_dpi
"
${
PW_SCREEN_RESOLUTION
:5:8
}
"
)
get_and_set_reg_file
--add
'Control Panel\Desktop'
'LogPixels'
'REG_DWORD'
"
$PW_RECOMMENDED_DPI
"
"user"
else
get_and_set_reg_file
--add
'Control Panel\Desktop'
'LogPixels'
'REG_DWORD'
"
$PW_WINE_DPI_VALUE
"
"user"
fi
if
[[
$PW_WINE_DPI_VALUE
=
~
(
disabled|recommended|96
)
]]
;
then
get_and_set_reg_file
--add
'Control Panel\Desktop'
'LogPixels'
'REG_DWORD'
"96"
"user"
else
get_and_set_reg_file
--add
'Control Panel\Desktop'
'LogPixels'
'REG_DWORD'
"
$PW_WINE_DPI_VALUE
"
"user"
fi
case
"
$PW_SOUND_DRIVER_USE
"
in
...
...
data_from_portwine/scripts/start.sh
View file @
a7c463bd
...
...
@@ -276,23 +276,6 @@ if [[ -z $SORT_WITH_TIME ]] ; then
export
SORT_WITH_TIME
=
"lastlaunch"
fi
# TODO:fixes_after_update (со временем можно будет дропнуть)
# Оставил для примера
# if fixes_after_update "2395: DESKTOP_WITH_TIME by default displays hours and minutes" ; then
# DESKTOP_WITH_TIME="posnumber1"
# edit_user_conf_from_gui DESKTOP_WITH_TIME
# fi
# if fixes_after_update "2398: SORT_WITH_TIME by default sorts from the last run" ; then
# SORT_WITH_TIME="lastlaunch"
# edit_user_conf_from_gui SORT_WITH_TIME
# fi
# choose wine dpi default
if
[[
-z
$PW_WINE_DPI_VALUE
]]
;
then
echo
'export PW_WINE_DPI_VALUE="recommended"'
>>
"
$USER_CONF
"
export
PW_WINE_DPI_VALUE
=
"recommended"
fi
if
check_gamescope_session
then
PW_TERM
=
"env LANG=C xterm -fullscreen -bg black -fg white -e"
else
PW_TERM
=
"env LANG=C xterm -bg black -fg white -e"
...
...
@@ -348,7 +331,7 @@ if [[ ${portwine_exe,,} =~ (setup|install|.msi$) ]] ; then
export
PW_USE_GAMEMODE
=
"0"
export
PW_DLL_INSTALL
=
""
# export WINEDLLOVERRIDES="mscoree,mshtml="
export
PW_WINE_USE
=
"
WINE
_LG"
export
PW_WINE_USE
=
"
PROTON
_LG"
export
PW_USE_SETUP_FILE
=
"1"
fi
...
...
data_from_portwine/scripts/var
View file @
a7c463bd
...
...
@@ -28,6 +28,7 @@ export PW_PREFIX_NAME="DEFAULT"
export
WINE_WIN_START
=
"start /wait /high /unix"
export
WINE_ALLOW_XIM
=
"0"
export
PW_USE_SHADER_CACHE
=
"1"
export
PW_WINE_DPI_VALUE
=
"96"
export
PW_WINE_CPU_TOPOLOGY
=
"disabled"
export
PW_MESA_GL_VERSION_OVERRIDE
=
"disabled"
export
PW_MESA_VK_WSI_PRESENT_MODE
=
"disabled"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment