Skip to content

Commit

Permalink
Fix vertical spacing between lines when rendering scaled text. Fixes …
Browse files Browse the repository at this point in the history
…issue grimfang4#40.
  • Loading branch information
Lee Bush committed Feb 2, 2020
1 parent f1a3480 commit c2e1bb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SDL_FontCache.c
Original file line number Diff line number Diff line change
Expand Up @@ -2018,7 +2018,7 @@ static void FC_DrawColumnFromBuffer(FC_Font* font, FC_Target* dest, FC_Rect box,
for(iter = ls; iter != NULL; iter = iter->next)
{
FC_RenderAlign(font, dest, box.x, y, box.w, scale, align, iter->value);
y += FC_GetLineHeight(font);
y += FC_GetLineHeight(font) * scale.y;
}
FC_StringListFree(ls);

Expand Down

0 comments on commit c2e1bb4

Please sign in to comment.