diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-14 11:27:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-14 12:34:23 +0300 |
commit | a7d7346b9eb3fa62a8912e31d5c00f8e05390425 (patch) | |
tree | ba2d006e8aaac74138eb13ba458d30abf8f01182 /src/mobileopenglgraphics.cpp | |
parent | 9569f124d176b4220f28f9a41812c33883737228 (diff) | |
download | mv-a7d7346b9eb3fa62a8912e31d5c00f8e05390425.tar.gz mv-a7d7346b9eb3fa62a8912e31d5c00f8e05390425.tar.bz2 mv-a7d7346b9eb3fa62a8912e31d5c00f8e05390425.tar.xz mv-a7d7346b9eb3fa62a8912e31d5c00f8e05390425.zip |
some more style fixes from cpplint.
Diffstat (limited to 'src/mobileopenglgraphics.cpp')
-rw-r--r-- | src/mobileopenglgraphics.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mobileopenglgraphics.cpp b/src/mobileopenglgraphics.cpp index 3498010c4..f447655e4 100644 --- a/src/mobileopenglgraphics.cpp +++ b/src/mobileopenglgraphics.cpp @@ -281,7 +281,7 @@ bool MobileOpenGLGraphics::drawRescaledImage(const Image *const image, drawRescaledQuad(image, srcX, srcY, dstX, dstY, width, height, desiredWidth, desiredHeight); - if (smooth) // A basic smooth effect... + if (smooth) // A basic smooth effect... { setColorAlpha(0.2f); drawRescaledQuad(image, srcX, srcY, dstX - 1, dstY - 1, width, height, @@ -347,22 +347,22 @@ void MobileOpenGLGraphics::drawImagePattern(const Image *const image, const float texX2 = static_cast<float>(srcX + width) / tw; - mFloatTexArray[vp + 0] = texX1; //1 + mFloatTexArray[vp + 0] = texX1; // 1 mFloatTexArray[vp + 1] = texY1; - mFloatTexArray[vp + 2] = texX2; //2 + mFloatTexArray[vp + 2] = texX2; // 2 mFloatTexArray[vp + 3] = texY1; - mFloatTexArray[vp + 4] = texX2; //3 + mFloatTexArray[vp + 4] = texX2; // 3 mFloatTexArray[vp + 5] = texY2; - mFloatTexArray[vp + 6] = texX1; //1 + mFloatTexArray[vp + 6] = texX1; // 1 mFloatTexArray[vp + 7] = texY1; - mFloatTexArray[vp + 8] = texX1; //4 + mFloatTexArray[vp + 8] = texX1; // 4 mFloatTexArray[vp + 9] = texY2; - mFloatTexArray[vp + 10] = texX2; //3 + mFloatTexArray[vp + 10] = texX2; // 3 mFloatTexArray[vp + 11] = texY2; mShortVertArray[vp + 0] = static_cast<GLshort>(dstX); @@ -828,7 +828,7 @@ void MobileOpenGLGraphics::updateScreen() #endif SDL_GL_SwapBuffers(); // may be need clear? -// glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); +// glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); BLOCK_END("Graphics::updateScreen") } @@ -1285,4 +1285,4 @@ void MobileOpenGLGraphics::debugBindTexture(const Image *const image A_UNUSED) } #endif -#endif // USE_OPENGL +#endif // USE_OPENGL |