Jump to content

Scaling up CBoE on HiDPI Linux systems


Recommended Posts

Turns out this is not as hard as I thought, it just relies on a somewhat obscure X server parameter that Xwayland also accepts.

 

The steps are

  1. Set Wine to use a virtual desktop. This is important for being able to move the map window around and such.
  2. Start a Weston or other minimal compositor session within your normal Wayland desktop.
  3. In the embedded compositor session, start Xwayland using the -dpi option, e.g `Xwayland :5 -dpi 75`
  4. Now open another terminal in the embedded session, export DISPLAY as necessary, and start BoE in it.
  5. You'll wind up with something that looks like this:

 

image.png

This way you can get a legible (though slightly ugly) window on HiDPI monitors where the window would normally be tiny. Furthermore with Xwayland 23.1 the embedded Weston session becomes unnecessary, as the -geometry parameter lets you specify a smaller window instead of Xwayland taking up the whole screen.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...