diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-10-23 11:13:53 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-10-26 12:28:03 +0200 |
commit | f0f2496a25cedc0cf9076491ccaccab0647e16f5 (patch) | |
tree | 98ad9ea81011d2e9120d4880dc6e2822b48ba781 /src/gui | |
parent | c6bb66d3bb2d6ee29bd115ccad281c70d7d24177 (diff) | |
download | mana-f0f2496a25cedc0cf9076491ccaccab0647e16f5.tar.gz mana-f0f2496a25cedc0cf9076491ccaccab0647e16f5.tar.bz2 mana-f0f2496a25cedc0cf9076491ccaccab0647e16f5.tar.xz mana-f0f2496a25cedc0cf9076491ccaccab0647e16f5.zip |
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.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/setup_video.cpp | 10 | ||||
-rw-r--r-- | src/gui/widgets/chattab.cpp | 2 | ||||
-rw-r--r-- | src/gui/widgets/window.cpp | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp index 0d6c9cce..5f7dc7b4 100644 --- a/src/gui/setup_video.cpp +++ b/src/gui/setup_video.cpp @@ -397,22 +397,22 @@ void Setup_Video::apply() // If LowCPU is enabled from a disabled state we warn the user else if (mDisableSDLTransparencyCheckBox->isSelected()) { - if (config.getValue("disableTransparency", true) == false) + if (!config.getBoolValue("disableTransparency")) { new OkDialog(_("Transparency disabled"), - _("You must restart to apply changes.")); + _("You must restart to apply changes.")); } } else { - if (config.getValue("disableTransparency", true) == true) + if (config.getBoolValue("disableTransparency")) { new OkDialog(_("Transparency enabled"), - _("You must restart to apply changes.")); + _("You must restart to apply changes.")); } } config.setValue("disableTransparency", - mDisableSDLTransparencyCheckBox->isSelected()); + mDisableSDLTransparencyCheckBox->isSelected()); mFps = mFpsCheckBox->isSelected() ? (int) mFpsSlider->getValue() : 0; mFpsSlider->setEnabled(mFps > 0); 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: |