Skip to content

Commit b32c959

Browse files
author
ozelot379
committed
Fix
1 parent 432695c commit b32c959

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/Converter/SpriteConverter.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class SpriteConverter extends AbstractConverter {
1313
async convert() {
1414
const to_delete = [];
1515

16-
for await (const [width, height, sprites, to, min_factor = 1] of this.getData()) {
16+
for await (const [width, height, sprites, to, additional_factor = 1] of this.getData()) {
1717
let image = null;
1818
let factor = null;
1919

@@ -30,7 +30,7 @@ class SpriteConverter extends AbstractConverter {
3030
const image_sprite = await this.readImage(sprite);
3131

3232
if (factor === null) {
33-
factor = Math.max((image_sprite.getWidth() / factor_detect), min_factor); // Take the factor of the first image
33+
factor = (image_sprite.getWidth() / factor_detect * additional_factor); // Take the factor of the first image
3434
}
3535

3636
if (image === null) {

0 commit comments

Comments
 (0)