diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-07 16:18:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-07 16:18:13 +0300 |
commit | 9fe21fcd8883b37bdc30224822e6e42afb35b8f0 (patch) | |
tree | 798117abd4dc7e610997d59d530a96ddc1509f53 /src/particle/textparticle.cpp | |
parent | 4429cb14e9e187edef27aba692a4266733f79c17 (diff) | |
download | plus-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.gz plus-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.bz2 plus-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.xz plus-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.zip |
Replace most static_cast<Type> to shorter versions from defines.
Diffstat (limited to 'src/particle/textparticle.cpp')
-rw-r--r-- | src/particle/textparticle.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/particle/textparticle.cpp b/src/particle/textparticle.cpp index 8a886f27d..399e00a01 100644 --- a/src/particle/textparticle.cpp +++ b/src/particle/textparticle.cpp @@ -55,8 +55,8 @@ void TextParticle::draw(Graphics *restrict const graphics, return; } - const int screenX = static_cast<int>(mPos.x) + offsetX; - const int screenY = static_cast<int>(mPos.y) - static_cast<int>(mPos.z) + const int screenX = CAST_S32(mPos.x) + offsetX; + const int screenY = CAST_S32(mPos.y) - CAST_S32(mPos.z) + offsetY; float alpha = mAlpha * 255.0F; @@ -74,13 +74,13 @@ void TextParticle::draw(Graphics *restrict const graphics, } Color color = *mColor; - color.a = static_cast<unsigned int>(alpha); + color.a = CAST_U32(alpha); graphics->setColor(color); if (mOutline) { const Color &restrict color2 = theme->getColor(ThemeColorId::OUTLINE, - static_cast<int>(alpha)); + CAST_S32(alpha)); mTextFont->drawString(graphics, color, color2, mText, |