pauleve/docker-mtgo

make more prettier

BeholdersEye opened this issue · 0 comments

I have found the following to improve the appearance of MTGO when ran in docker on a laptop with a screen that has a low native resolution. e.g. 1366x768.

First is of course to make sure it runs normally.

Then run with --winecfg and enable these options on the Graphics tab:

  • Emulate a virtual desktop
  • Desktop size: double your native resolution. In my case 2732x1536
  • Screen resolution: double your default. In my case the default was 96 dpi so I changed it to 192 dpi.

Now when you run MTGO it should render at "double resolution" and overflow your desktop screen. Good.

Next you need to identify your display device by calling:

xrandr --current

Then call this to "zoom out" that display to 50%:

xrandr --output <YOUR DISPLAY NAME FROM THE COMMAND ABOVE> --scale 2x2

As described here.

https://askubuntu.com/a/379132

Everything but the MTGO window appear at half resolution. When you are done playing call:

xrandr --output <YOUR DISPLAY NAME FROM THE COMMAND ABOVE> --scale 1x1

To revert to normal, 100% "zoom"

One drawback is that the mouse seems to move at half speed while doing this, since it has to move across a double-sized screen. The cursor is also half-sized. Maybe winecfg has workarounds for these. I just thought you would like to know about the graphic improvement because MTGO is pretty ugly at low resolutions. It is an inefficient way to get fractional scaling but in a card game I am willing to drop a couple of frames to make it look better / usable.


Edit: I have attached a script to make this automatic. Run RUN_MTGO.sh in the same folder as run-mtgo

RUN_MTGO.sh.txt

Edit 2: Okay so comparing screenshots makes it seem the benefits are mostly imaginary- but to realize them, set the DPI in winecfg to something less than double the default. Suggest decrementing from 192 in units of 16 until the card text is just legible.