From f0f2496a25cedc0cf9076491ccaccab0647e16f5 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Wed, 23 Oct 2024 11:13:53 +0200 Subject: Fixed FPS limit being enabled by default There were some inconsistencies between the values set up in `Client::initConfiguration` and those in `getConfigDefaults`. These duplicates have now been removed. For some of these settings the code getting the values had to be adjusted to use getBoolValue, to actually rely on the provided default instead of one provided as a parameter. --- src/gui/widgets/chattab.cpp | 2 +- src/gui/widgets/window.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets') diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp index 9bdb20ef..7a840cc6 100644 --- a/src/gui/widgets/chattab.cpp +++ b/src/gui/widgets/chattab.cpp @@ -52,7 +52,7 @@ ChatTab::ChatTab(const std::string &name) mTextOutput = new BrowserBox(BrowserBox::AUTO_WRAP); mTextOutput->setWrapIndent(15); - mTextOutput->setMaxRows((int) config.getIntValue("ChatLogLength")); + mTextOutput->setMaxRows(config.getIntValue("ChatLogLength")); mTextOutput->setLinkHandler(chatWindow->mItemLinkHandler); mScrollArea = new ScrollArea(mTextOutput); diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp index 7e5c9ad9..050e31da 100644 --- a/src/gui/widgets/window.cpp +++ b/src/gui/widgets/window.cpp @@ -407,7 +407,7 @@ void Window::mouseMoved(gcn::MouseEvent &event) int resizeHandles = getResizeHandles(event); - // Changes the custom mouse cursor based on it's current position. + // Changes the custom mouse cursor based on its current position. switch (resizeHandles) { case BOTTOM | RIGHT: -- cgit v1.2.3-70-g09d2