Skip to content

Commit

Permalink
Work around weird GCC warning;
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornbytes committed May 10, 2024
1 parent 4fce724 commit 6187ea1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/graphics/graphics.c
Original file line number Diff line number Diff line change
Expand Up @@ -3731,6 +3731,8 @@ float lovrFontGetWidth(Font* font, ColoredString* strings, uint32_t count) {
}

void lovrFontGetLines(Font* font, ColoredString* strings, uint32_t count, float wrap, void (*callback)(void* context, const char* string, size_t length), void* context) {
if (count == 0) return;

size_t totalLength = 0;
for (uint32_t i = 0; i < count; i++) {
totalLength += strings[i].length;
Expand Down

0 comments on commit 6187ea1

Please sign in to comment.