Skip to content

Commit

Permalink
fix(engine): diable draw empty text
Browse files Browse the repository at this point in the history
  • Loading branch information
drawbu committed Apr 7, 2024
1 parent 95b5c24 commit b701c31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Arcade/Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ std::vector<ass::Event> gg::Engine::events()
void gg::Engine::draw_text(
ass::Vector2<float> pos, std::string text, uint size, ass::TermColor color)
{
_renderer->draw_text(pos, text, size, color);
if (!text.empty())
_renderer->draw_text(pos, text, size, color);
}

void gg::Engine::wait_frame(u_int8_t fps)
Expand Down

0 comments on commit b701c31

Please sign in to comment.