From 80801180f6fd9b00e66b7a2bf0eb4ed20b6c9bf3 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 6 Jan 2024 21:07:28 +0100 Subject: [PATCH] add antialiasing --- src/Ecran.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Ecran.cpp b/src/Ecran.cpp index 942bf1d..a0dcfb0 100644 --- a/src/Ecran.cpp +++ b/src/Ecran.cpp @@ -19,9 +19,12 @@ Ecran::Ecran(const uint w, const uint h, const std::string n, const bool pf) { } ++count; + sf::ContextSettings settings; + settings.antialiasingLevel = 8; + // CrĂ©ation de la fenĂȘtre SFML window.create(VideoMode(w, h + bottomTxtPadding), n, - Style::Titlebar | Style::Close); + Style::Titlebar | Style::Close, settings); fps = pf; }