The display resolution is set to 192 dpi. However, I'm having a hard time to get Winbox displayed properly under Wine on this display
Unfortunately Winbox is unaware of the Linux display scaling. As a result, with the default Wine display DPI setting (72 dpi) I get an unusable tiny display: If I set the display DPI setting in winecfg to 192 dpi to match my Linux display dpi, the fonts in Winbox get scaled properly, but the graphical UI elements - like list views, checkboxes etc. - do not. Those all seem like some custom UI library that does not scale under Wine. As a result, the Winbox interface is still unusable, because the now-bigger text won't fit into the still-small UI views: I currently help myself by a VNC hack - I open a separate local X server as display :1 (the regular X server is :0), then a VNC server on display :1 that has some scaling applied, then Winbox in Wine on display :1, and then a VNC client to get a scaled view of the Winbox window:
$ Xephyr -once -screen 1366x768 -retro :1 & # use at least 768 height to avoid clipping in Winbox $ x11vnc -localhost -display :1 -scale 7/4 -repeat & # use -scale 2:nb for 2:1 direct pixel scaling $ DISPLAY=:1 wine /usr/local/bin/winbox.exe & $ DISPLAY=:1 wm2 & # Optional, only if you want to move/scale the Winbox window $ vncviewer localhost
However, this is rather clumsy. Is there a better way to get a properly scaled Winbox interface on Linux?