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/render/mobileopenglgraphics.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/render/mobileopenglgraphics.cpp') diff --git a/src/render/mobileopenglgraphics.cpp b/src/render/mobileopenglgraphics.cpp index 36a0ae787..f703ff667 100644 --- a/src/render/mobileopenglgraphics.cpp +++ b/src/render/mobileopenglgraphics.cpp @@ -1165,10 +1165,10 @@ void MobileOpenGLGraphics::drawNet(const int x1, const int y1, const GLshort xs2 = static_cast(x2); const GLshort ys1 = static_cast(y1); const GLshort ys2 = static_cast(y2); - const int16_t width1 = static_cast(width); - const int16_t height1 = static_cast(height); + const int16_t width1 = CAST_S16(width); + const int16_t height1 = CAST_S16(height); - for (int16_t y = static_cast(y1); y < y2; y += height1) + for (int16_t y = CAST_S16(y1); y < y2; y += height1) { mShortVertArray[vp + 0] = xs1; mShortVertArray[vp + 1] = y; @@ -1184,7 +1184,7 @@ void MobileOpenGLGraphics::drawNet(const int x1, const int y1, } } - for (int16_t x = static_cast(x1); x < x2; x += width1) + for (int16_t x = CAST_S16(x1); x < x2; x += width1) { mShortVertArray[vp + 0] = x; mShortVertArray[vp + 1] = ys1; -- cgit v1.2.3-60-g2f50