HiDPI support with Wine applications [closed]
I'm thinking of buying an HP Spectre x360 13" laptop with QHD display and installing Mint on it and using Wine to run some Windows apps. I was wondering if anyone had experience with Wine's support for HiDPI displays - do the apps run on Wine on a HiDPI display look good?
Solution 1:
In my case, wine apps don't look really good.
winecfg
has a setting for the screen resolution which you can set to 210 dpi (in my case).
However,
- this seems to affect only on some of the graphic elements of a wine application: For instance, the menu bar is unaffected in my case.
- If you connect an external monitor or occasionally want to switch to another screen with non-HiDPI resolution, this is not an elegant way as you have to return to
winecfg
each time to adjust the DPI. Wine should follow the X-server DPI setting, but this doesn't seem to happen at the moment.
I'm running wine 1.9.19 on an arch linux on a Lenovo Thinkpad X1 Carbon.
Solution 2:
Note: Recent versions of Wine (may) no longer need this.
In addition to what LaTechneuse stated, you also need to manually change the desktop metrics using regedit.exe, otherwise the most of the system menus and labels will still remain small.
The values you need to change are located in HKEY_CURRENT_USER\Control Panel\Desktop\Window Metrics:
- Replace all the REG_SZ values, except for IconTitleWrap (it should be 1), to value*2 (e.g. change -135 to -270, 1 to 2, 32 to 64, etc.)
- Change the very first byte in all of the REG_BINARY values (CaptionFont, MenuFont, etc.) to byte*2 (e.g. change 04 to 08, etc.). Remember that the values are hexadecimal.
When editing the REG_BINARY values, be careful not to shift any bytes accidentally. Place your cursor after the value you need to replace, then press Backspace once, then enter the new value.