fix text display pb

This commit is contained in:
arthur.jamet
2021-05-21 12:48:50 +02:00
parent 6a3aa2a502
commit 94312bd6ad
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ RAY::Drawables::Drawables2D::Text &RAY::Drawables::Drawables2D::Text::setLetterS
void RAY::Drawables::Drawables2D::Text::drawOn(RAY::Window &window)
{
(void)window;
if (this->_font.recs)
if (!this->_font.recs)
DrawText(this->_text.c_str(), this->_position.x, this->_position.y,
this->_size, this->_color.getColor());
else
+1 -1
View File
@@ -19,7 +19,7 @@ int main()
const int screenHeight = 450;
RAY::Window &window = RAY::Window::getInstance(screenWidth, screenHeight, "Ta mère en slip", false);
RAY::Drawables::Drawables2D::Text text("Hello World", 10, {190, 200}, RED);
RAY::Drawables::Drawables2D::Text text("Hello World", 100, {190, 200}, RED);
RAY::Drawables::Drawables2D::Circle circle(400, 225, 50, RED);
window.open();