A slight improvement to avoid rendering boxes behind text that is default bg color.

This commit is contained in:
Zed A. Shaw 2024-11-18 22:12:40 -05:00
parent be144e2a05
commit 111429b974
3 changed files with 21 additions and 17 deletions

View file

@ -49,7 +49,7 @@ struct SFMLRender {
sf::Sprite &get_text_sprite(wchar_t tile);
bool resize_map(int new_size, Point &view_port);
void render_grid(const std::wstring &text, float x, float y);
void render_text(const std::wstring &text, float x, float y);
void render_text(const std::wstring &text, sf::Color bgcolor, float x, float y);
void draw(Panel &panel, float x_offset=0.0f, float y_offset=0.0f);