summaryrefslogtreecommitdiff
path: root/src/gui/widgets/chattab.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-04-09 17:36:33 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-10-18 08:21:32 +0000
commite875242f380662573880e7400fe3e736a2d3375a (patch)
tree1c026e19d98764b57c7619502d8c88535aa58d8e /src/gui/widgets/chattab.cpp
parenteb206d0a5a9b8d73b103c094e376c5e13cd4c218 (diff)
downloadmana-e875242f380662573880e7400fe3e736a2d3375a.tar.gz
mana-e875242f380662573880e7400fe3e736a2d3375a.tar.bz2
mana-e875242f380662573880e7400fe3e736a2d3375a.tar.xz
mana-e875242f380662573880e7400fe3e736a2d3375a.zip
General code cleanups
Diffstat (limited to 'src/gui/widgets/chattab.cpp')
-rw-r--r--src/gui/widgets/chattab.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp
index 663464a8..9bdb20ef 100644
--- a/src/gui/widgets/chattab.cpp
+++ b/src/gui/widgets/chattab.cpp
@@ -66,7 +66,7 @@ ChatTab::ChatTab(const std::string &name)
listen(Event::ConfigChannel);
// Initiate the text format
- updateTextFormat(((Window*)getParent())->getGuiAlpha());
+ updateTextFormat(Window::getGuiAlpha());
}
ChatTab::~ChatTab()
@@ -104,8 +104,7 @@ void ChatTab::event(Event::Channel channel, const Event &event)
event.getType() == Event::ConfigOptionChanged &&
event.getString("option") == "guialpha")
{
- int alpha = ((Window*)getParent())->getGuiAlpha();
- updateTextFormat(alpha);
+ updateTextFormat(Window::getGuiAlpha());
}
}