fix window

This commit is contained in:
Mylloon 2023-12-28 18:01:28 +01:00
parent 2791b7293d
commit 32451df61a
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -6,7 +6,8 @@ std::string Ecran::message = "";
Ecran::Ecran(const uint w, const uint h, const std::string n) { Ecran::Ecran(const uint w, const uint h, const std::string n) {
// Création de la fenêtre SFML // 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() {} Ecran::~Ecran() {}
@ -20,7 +21,7 @@ void Ecran::afficher(
sf::Text text; sf::Text text;
text.setFont(font); text.setFont(font);
text.setCharacterSize(24); text.setCharacterSize(24);
text.setPosition(0, hauteur()); text.setPosition(3, hauteur());
text.setFillColor(sf::Color::White); text.setFillColor(sf::Color::White);
while (window.isOpen()) { while (window.isOpen()) {