Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加HIDPI支持 #7

Closed
BoringCat opened this issue Oct 10, 2019 · 5 comments
Closed

增加HIDPI支持 #7

BoringCat opened this issue Oct 10, 2019 · 5 comments

Comments

@BoringCat
Copy link

根据Winecfg的文档,可以通过设置Wine注册表中的LogPixels值来设定DPI值

粗略逻辑代码:

REGDPI=$(printf '%08x\n' $DPI)
cat > ~/.deepinwine/Deepin-$APP/dpi.reg << EOF
REGEDIT4

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts]
"LogPixels"=dword:$REGDPI
EOF

WINEPREFIX=~/.deepinwine/Deepin-$APP deepin-wine regedit ~/.deepinwine/Deepin-$APP/dpi.reg

其中DPI值由Docker env传入,Wine中默认为96 (0x00000060)

@Alice-space
Copy link

具体怎么操作呢
不太会搞wine+docker

@Alice-space
Copy link

https://github.com/Alice-space/docker-wechat
fork中修复

@Alice-space
Copy link

感谢你的方案

@BoringCat
Copy link
Author

@Alice-space
Copy link


新的版本我变成改启动脚本了
感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants