11

When I use regular or fractional scaling, content generated by Wine does not scale. This looks particularly bad under fractional scaling because the Wine content takes up relatively less of the screen.

No scaling, 125% scaling, 200% scaling. Adjusted for perceived height.

In other software that does not honor desktop scaling I have found an independent scaling setting for that software. (e.g. layout.css.devPixelsperPx in Firefox).

How can I set scaling in Wine?

1 Answer 1

14

To set scaling in Wine you need to adjust the Wine DPI setting. You can find this is Wine Configuration (winecfg) under the Graphics tab. In this example under 125% fractional desktop scaling, setting the Wine screen resolution to 240dpi scales Wine content appropriately (for my tastes).

You will need to configure this setting for each wineprefix.

4
  • 1
    This doesn't solve some edge cases, see bbs.archlinux.org/viewtopic.php?pid=1656143 for a more involved (untested) solution.
    – lofidevops
    May 15, 2021 at 8:41
  • what do you mean for each wine prefix? after I set the setting the windows app is still running at normal dpi.
    – Kleajmp
    Apr 26, 2022 at 17:41
  • @Kleajmp I'm not enough of a wine expert to give a succinct answer, perhaps these links will help askubuntu.com/questions/956244
    – lofidevops
    Apr 28, 2022 at 13:50
  • @Kleajmp I'd also suggest trying with a simple app (notepad?) first, just to confirm it's working
    – lofidevops
    Apr 28, 2022 at 13:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.