diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-11-06 19:46:56 +0000 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-11-06 19:46:56 +0000 |
commit | 6a82d04e2b5edffc32df44aa46d6cf60428c7b44 (patch) | |
tree | 33f3ae7dce209e21d36e8bafd1dc324380163d1b | |
parent | 16e1a2f3dd5c08a3847aa635d4bd9dbf83f83c3f (diff) |
Don't use the deprecated setColor for text.
-rw-r--r-- | src/render.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render.cpp b/src/render.cpp index c8513cb..a6cc6b5 100644 --- a/src/render.cpp +++ b/src/render.cpp @@ -103,7 +103,7 @@ void state_t::render(game::state_t *game) sf::Text text(debug.text, font, 20); text.setPosition(debug.x); text.setScale(0.006, 0.006); - text.setColor(sf::Color::Red); + text.setFillColor(sf::Color::Red); window->draw(text); } } |