Use nearest-neighbour scaling in --debug-chrome-regions utility command.

This commit is contained in:
Paul Chote
2020-09-07 18:32:10 +01:00
committed by abcdefg30
parent 62475279ee
commit 920d00bbae

View File

@@ -104,6 +104,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
" for (var j = 0; j < ctx.canvas.height / 4; j++)", " for (var j = 0; j < ctx.canvas.height / 4; j++)",
" for (var i = j % 2; i < ctx.canvas.width / 4; i += 2)", " for (var i = j % 2; i < ctx.canvas.width / 4; i += 2)",
" ctx.fillRect(4 * i, 4 * j, 4, 4);", " ctx.fillRect(4 * i, 4 * j, 4, 4);",
" ctx.imageSmoothingEnabled = false;",
" ctx.drawImage(image, 0, 0, c.width, c.height);", " ctx.drawImage(image, 0, 0, c.width, c.height);",
" ctx.strokeStyle = \"#ffff00\";", " ctx.strokeStyle = \"#ffff00\";",
" ctx.lineWidth = 1;", " ctx.lineWidth = 1;",