diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-02-29 18:17:57 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-29 18:17:57 +1100 |
commit | 7ff287511d8e5d18260202d80d6b8c68368bc5bc (patch) | |
tree | fc39f7377c36e467cfd58da6a5dd9a341fae36e4 /source/frontend/StarMainInterface.cpp | |
parent | 667ca6025fb2f33c120fe4afd360afd278c3b82d (diff) | |
parent | 33d696d505e0d5a3716deb72e0e377015edd0d02 (diff) |
Merge pull request #24 from kblaschke/fix-more-compiler-warnings
Fix more compiler warnings
Diffstat (limited to 'source/frontend/StarMainInterface.cpp')
-rw-r--r-- | source/frontend/StarMainInterface.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source/frontend/StarMainInterface.cpp b/source/frontend/StarMainInterface.cpp index aa06dc7..193deea 100644 --- a/source/frontend/StarMainInterface.cpp +++ b/source/frontend/StarMainInterface.cpp @@ -1365,11 +1365,9 @@ void MainInterface::renderDebug() { m_debugTextRect = RectF::null(); - counter = 0; - for (auto const& pair : logMapValues) { + for (size_t index = 0; index < logMapValues.size(); ++index) { TextPositioning positioning = { Vec2F(m_config->debugOffset[0], windowHeight() - m_config->debugOffset[1] - m_config->fontSize * interfaceScale() * counter) }; - m_guiContext->renderText(formatted[counter], positioning); - ++counter; + m_guiContext->renderText(formatted[index], positioning); } m_guiContext->setFontSize(8); m_guiContext->setDefaultFont(); @@ -1515,7 +1513,7 @@ bool MainInterface::overButton(PolyI buttonPoly, Vec2I const& mousePos) const { return buttonPoly.contains(mousePos); } -bool MainInterface::overlayClick(Vec2I const& mousePos, MouseButton mouseButton) { +bool MainInterface::overlayClick(Vec2I const& mousePos, MouseButton) { PolyI mainBarPoly = m_config->mainBarPoly; Vec2I barPos = mainBarPosition(); mainBarPoly.translate(barPos); |