Skip to content

Commit

Permalink
Fix line spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
kraxarn committed May 5, 2024
1 parent 179d37d commit 1a46f28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/engine/text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ ce::text::text(std::string text, int x, int y, int font_size, Color color)

void ce::text::draw()
{
SetTextLineSpacing(static_cast<int>(static_cast<float>(font_size) * 1.5F));
DrawText(str.c_str(), x, y, font_size, color);
}

Expand Down

0 comments on commit 1a46f28

Please sign in to comment.