diff options
Diffstat (limited to 'ui/Sprite.js')
-rw-r--r-- | ui/Sprite.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/Sprite.js b/ui/Sprite.js index 62b0172..701f1b8 100644 --- a/ui/Sprite.js +++ b/ui/Sprite.js @@ -60,7 +60,7 @@ module.exports = class Sprite extends DisplayElement { } get textureWidth() { - return Math.max(...this.texture.map(row => row.length)) + return Math.max(...this.texture.map(row => ansi.measureColumns(row))) } get textureHeight() { |