summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textpreview.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-23 22:48:57 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:17 +0300
commitd3994b21fda3e7d8ba417a382fc8f065a7bf1c52 (patch)
tree420c78c8ceda39895cce60849e3aeafedd41f081 /src/gui/widgets/textpreview.cpp
parent576b7dca4676ba2c1ea63afb6bbc96fd11183048 (diff)
downloadplus-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.tar.gz
plus-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.tar.bz2
plus-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.tar.xz
plus-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.zip
improve some mode methods in Client.
Diffstat (limited to 'src/gui/widgets/textpreview.cpp')
-rw-r--r--src/gui/widgets/textpreview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/textpreview.cpp b/src/gui/widgets/textpreview.cpp
index 11de5b553..e788f1f4c 100644
--- a/src/gui/widgets/textpreview.cpp
+++ b/src/gui/widgets/textpreview.cpp
@@ -83,8 +83,8 @@ TextPreview::~TextPreview()
void TextPreview::draw(gcn::Graphics* graphics)
{
BLOCK_START("TextPreview::draw")
- if (Client::getGuiAlpha() != mAlpha)
- mAlpha = Client::getGuiAlpha();
+ if (client->getGuiAlpha() != mAlpha)
+ mAlpha = client->getGuiAlpha();
Graphics *const g = static_cast<Graphics*>(graphics);
const int intAlpha = static_cast<int>(mAlpha * 255.0f);