draw after event
This commit is contained in:
parent
51b3e74607
commit
a61f78eb72
1 changed files with 3 additions and 3 deletions
|
@ -25,9 +25,6 @@ void Ecran::afficher(
|
|||
|
||||
window.clear();
|
||||
|
||||
// Appel d'une fonction dessin
|
||||
dessin();
|
||||
|
||||
// Récupération des coordonnées du clic de souris
|
||||
if (!mouseButtonPressed) {
|
||||
if (event.type == sf::Event::MouseButtonPressed &&
|
||||
|
@ -43,6 +40,9 @@ void Ecran::afficher(
|
|||
mouseButtonPressed = false;
|
||||
}
|
||||
|
||||
// Appel d'une fonction dessin
|
||||
dessin();
|
||||
|
||||
window.display();
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue