From 9fe21fcd8883b37bdc30224822e6e42afb35b8f0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Feb 2016 16:18:13 +0300 Subject: Replace most static_cast to shorter versions from defines. --- src/particle/textparticle.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/particle/textparticle.cpp') 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(mPos.x) + offsetX; - const int screenY = static_cast(mPos.y) - static_cast(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(alpha); + color.a = CAST_U32(alpha); graphics->setColor(color); if (mOutline) { const Color &restrict color2 = theme->getColor(ThemeColorId::OUTLINE, - static_cast(alpha)); + CAST_S32(alpha)); mTextFont->drawString(graphics, color, color2, mText, -- cgit v1.2.3-70-g09d2