Round reftest repeat values

This commit is contained in:
Niklas von Hertzen 2017-08-10 21:58:56 +08:00
parent c287f51cb6
commit 82cfcf8704

View File

@ -137,11 +137,11 @@ class RefTestRenderer implements RenderTarget<string> {
offsetY: number
) {
this.writeLine(
`Repeat: ${this.formatImage(
image
)} [${offsetX}, ${offsetY}] Size (${imageSize.width}, ${imageSize.height}) ${this.formatPath(
path
)}`
`Repeat: ${this.formatImage(image)} [${Math.round(offsetX)}, ${Math.round(
offsetY
)}] Size (${Math.round(imageSize.width)}, ${Math.round(
imageSize.height
)}) ${this.formatPath(path)}`
);
}