diff --git a/src/Ecran.cpp b/src/Ecran.cpp index 6d93dba..baca7d8 100644 --- a/src/Ecran.cpp +++ b/src/Ecran.cpp @@ -11,7 +11,7 @@ Ecran::~Ecran() {} void Ecran::afficher( const std::function dessin, - const std::function onclick) const { + const std::function onClick) const { // Flag qui track si le clic gauche est pressé bool mouseButtonPressed = false; @@ -32,7 +32,7 @@ void Ecran::afficher( if (!mouseButtonPressed) { if (event.type == sf::Event::MouseButtonPressed && event.mouseButton.button == sf::Mouse::Left) { - onclick(event.mouseButton.x, event.mouseButton.y); + onClick(event.mouseButton.x, event.mouseButton.y); mouseButtonPressed = true; } }