From c168e235d99f358e46f38316e6f28cb34fab1d9f Mon Sep 17 00:00:00 2001 From: vittorioromeo Date: Tue, 20 Feb 2024 20:07:43 +0100 Subject: update to latest SFML --- CMakeLists.txt | 2 +- src/SSVOpenHexagon/Core/HexagonGame.cpp | 12 ++++++------ src/SSVOpenHexagon/Global/Config.cpp | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 122b6124..df83038b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -97,7 +97,7 @@ set(SFML_ENABLE_PCH true) CPMAddPackage( NAME SFML GITHUB_REPOSITORY vittorioromeo/SFML - GIT_TAG d3596fdeaaa0ecef0b66f7296bca6a3ceac53e66 + GIT_TAG b97c9c7f0b552ff7e1e6f0fa51abe82b949e241d ) set_target_properties(sfml-system PROPERTIES UNITY_BUILD OFF) diff --git a/src/SSVOpenHexagon/Core/HexagonGame.cpp b/src/SSVOpenHexagon/Core/HexagonGame.cpp index 7ebbe1da..953fd41e 100644 --- a/src/SSVOpenHexagon/Core/HexagonGame.cpp +++ b/src/SSVOpenHexagon/Core/HexagonGame.cpp @@ -292,6 +292,11 @@ HexagonGame::HexagonGame(Steam::steam_manager* mSteamManager, pbText{initText(fontBold, "", 65.f)}, txStarParticle{nullptr}, txSmallCircle{nullptr}, + keyIconLeft{assets.getTextureOrNullTexture("keyArrow.png")}, + keyIconRight{assets.getTextureOrNullTexture("keyArrow.png")}, + keyIconFocus{assets.getTextureOrNullTexture("keyFocus.png")}, + keyIconSwap{assets.getTextureOrNullTexture("keySwap.png")}, + replayIcon{assets.getTextureOrNullTexture("replayIcon.png")}, levelInfoTextLevel{font, ""}, levelInfoTextPack{font, ""}, levelInfoTextAuthor{font, ""}, @@ -301,12 +306,7 @@ HexagonGame::HexagonGame(Steam::steam_manager* mSteamManager, fpsText{initText(font, "0", 25.f)}, timeText{initText(fontBold, "0", 70.f)}, text{initText(font, "", 25.f)}, - replayText{initText(font, "", 20.f)}, - keyIconLeft{assets.getTextureOrNullTexture("keyArrow.png")}, - keyIconRight{assets.getTextureOrNullTexture("keyArrow.png")}, - keyIconFocus{assets.getTextureOrNullTexture("keyFocus.png")}, - keyIconSwap{assets.getTextureOrNullTexture("keySwap.png")}, - replayIcon{assets.getTextureOrNullTexture("replayIcon.png")} + replayText{initText(font, "", 20.f)} { if(window != nullptr) { diff --git a/src/SSVOpenHexagon/Global/Config.cpp b/src/SSVOpenHexagon/Global/Config.cpp index 57691857..3b32c02b 100644 --- a/src/SSVOpenHexagon/Global/Config.cpp +++ b/src/SSVOpenHexagon/Global/Config.cpp @@ -1467,7 +1467,7 @@ const std::array triggerGetters{ } const auto keyBind{c.getKeys()}; - for(j = 0; j <= sf::Keyboard::KeyCount; ++j) + for(j = 0; j <= static_cast(sf::Keyboard::KeyCount); ++j) { if(!keyBind[j]) { @@ -1486,7 +1486,7 @@ const std::array triggerGetters{ } const auto btnBinds{c.getBtns()}; - for(j = 0; j <= sf::Mouse::ButtonCount; ++j) + for(j = 0; j <= static_cast(sf::Mouse::ButtonCount); ++j) { if(!btnBinds[j]) { -- cgit v1.2.3