Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/geode-sdk/cli
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 committed Apr 12, 2024
2 parents f67d723 + b9d2bb6 commit bd114af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/spritesheet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ fn initialize_spritesheet_bundle(

let mut max_width = (width_sum * mean_height).sqrt() as u32;

if max_width < largest_width {
if max_width < largest_width || sprites.len() == 1 {
max_width = largest_width + 2;
}

Expand Down

0 comments on commit bd114af

Please sign in to comment.