Skip to content

Commit

Permalink
Fix Font:getLines with multicolor strings;
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornbytes committed May 11, 2024
1 parent 40879f3 commit 2588d1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/l_graphics_font.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static int l_lovrFontGetLines(lua_State* L) {
ColoredString* strings = luax_checkcoloredstrings(L, 2, &count, &stack);
float wrap = luax_checkfloat(L, 3);
lua_newtable(L);
lovrFontGetLines(font, strings, 1, wrap, online, L);
lovrFontGetLines(font, strings, count, wrap, online, L);
if (strings != &stack) free(strings);
return 1;
}
Expand Down

0 comments on commit 2588d1a

Please sign in to comment.