Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend/StarMainInterface.cpp
diff options
context:
space:
mode:
authorKai Blaschke <kai.blaschke@kb-dev.net>2024-02-28 18:11:55 +0100
committerKai Blaschke <kai.blaschke@kb-dev.net>2024-02-28 18:30:27 +0100
commitcd23817bf1884fee4457ab3381320b0c8fc33f48 (patch)
tree9440ff3b0386ca9e3b1bac9eda168741ec6debb3 /source/frontend/StarMainInterface.cpp
parent28d486446ca176ef0168a7284d85cb49a75a54fb (diff)
Fixed remaining compiler warnings
Some warnings (e.g. in Opus and the tests) can't be fixed, only suppressed.
Diffstat (limited to 'source/frontend/StarMainInterface.cpp')
-rw-r--r--source/frontend/StarMainInterface.cpp8
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);