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:
@@ -57,6 +57,7 @@ namespace OpenRA
|
||||
if (!spriteCache.TryGetValue(icon24Node.Value.Value, out sprite))
|
||||
{
|
||||
sprite = spriteCache[icon24Node.Value.Value] = sheetBuilder.Allocate(new Size(24, 24));
|
||||
sprite.Sheet.GetTexture().ScaleFilter = TextureScaleFilter.Linear;
|
||||
|
||||
Action<DownloadDataCompletedEventArgs> onComplete = i =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user