fix window
This commit is contained in:
parent
2791b7293d
commit
32451df61a
1 changed files with 3 additions and 2 deletions
|
@ -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()) {
|
||||
|
|
Reference in a new issue