Skip to content

Commit

Permalink
update to latest SFML
Browse files Browse the repository at this point in the history
  • Loading branch information
vittorioromeo committed Feb 20, 2024
1 parent 57bbea9 commit c168e23
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
12 changes: 6 additions & 6 deletions src/SSVOpenHexagon/Core/HexagonGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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, ""},
Expand All @@ -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)
{
Expand Down
4 changes: 2 additions & 2 deletions src/SSVOpenHexagon/Global/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1467,7 +1467,7 @@ const std::array<TriggerGetter, toSizeT(Tid::TriggersCount)> triggerGetters{
}

const auto keyBind{c.getKeys()};
for(j = 0; j <= sf::Keyboard::KeyCount; ++j)
for(j = 0; j <= static_cast<int>(sf::Keyboard::KeyCount); ++j)
{
if(!keyBind[j])
{
Expand All @@ -1486,7 +1486,7 @@ const std::array<TriggerGetter, toSizeT(Tid::TriggersCount)> triggerGetters{
}

const auto btnBinds{c.getBtns()};
for(j = 0; j <= sf::Mouse::ButtonCount; ++j)
for(j = 0; j <= static_cast<int>(sf::Mouse::ButtonCount); ++j)
{
if(!btnBinds[j])
{
Expand Down

0 comments on commit c168e23

Please sign in to comment.