Support rendering at non-integer display scales:

* 2x and 3x DPI artwork can be specified using
  Image2x and Image3x in chrome.yaml.
* Images are rendered using bilinear interpolation.
* For non-integer screen scales, prefer downscaling
  the next biggest resolution image over upscaling.
This commit is contained in:
Paul Chote
2019-12-25 18:49:47 +00:00
committed by abcdefg30
parent 809b1507a6
commit fd64ad7c89
15 changed files with 130 additions and 17 deletions

View File

@@ -110,6 +110,8 @@ namespace OpenRA
{
Game.RunAfterTick(() =>
{
ChromeProvider.SetDPIScale(after);
foreach (var f in Fonts)
f.Value.SetScale(after);
});