From 32451df61ad738600d4ec0d3c38b079e57d3ed1b Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 28 Dec 2023 18:01:28 +0100 Subject: [PATCH] fix window --- src/Ecran.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Ecran.cpp b/src/Ecran.cpp index b8cfb5b..3f9af0b 100644 --- a/src/Ecran.cpp +++ b/src/Ecran.cpp @@ -6,7 +6,8 @@ std::string Ecran::message = ""; Ecran::Ecran(const uint w, const uint h, const std::string n) { // CrĂ©ation de la fenĂȘtre SFML - window.create(sf::VideoMode(w, h + bottomTxtPadding), n); + window.create(sf::VideoMode(w, h + bottomTxtPadding), n, + sf::Style::Titlebar | sf::Style::Close); } Ecran::~Ecran() {} @@ -20,7 +21,7 @@ void Ecran::afficher( sf::Text text; text.setFont(font); text.setCharacterSize(24); - text.setPosition(0, hauteur()); + text.setPosition(3, hauteur()); text.setFillColor(sf::Color::White); while (window.isOpen()) {