mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-05 02:49:57 +00:00
fix text display pb
This commit is contained in:
@@ -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
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user