Skip to content

Commit

Permalink
butano: sprite_text_generator uses one sprite per character if the sp…
Browse files Browse the repository at this point in the history
…ace between characters is too big
  • Loading branch information
GValiente committed Nov 27, 2024
1 parent 36e2ed0 commit 4e66389
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* @section changelog_18_5_0 18.5.0 (next release)
*
* * bn::sprite_text_generator rendering with negative space between characters fixed.
* * bn::sprite_text_generator uses one sprite per character if the space between characters is too big.
* * @ref faq_memory_arm_iwram question added to the @ref faq page.
*
*
Expand Down
2 changes: 1 addition & 1 deletion butano/src/bn_sprite_text_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ void sprite_text_generator::_init()
}
else
{
if(space_between_characters < 0 || space_between_characters >= width)
if(space_between_characters >= width)
{
_font_one_sprite_per_character = true;
}
Expand Down
2 changes: 1 addition & 1 deletion docs/changelog.html

Large diffs are not rendered by default.

0 comments on commit 4e66389

Please sign in to comment.