summaryrefslogtreecommitdiff
path: root/src/render/safeopenglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-29 17:24:52 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-29 17:59:57 +0300
commitf315432679f760b71505e74dcb2185b7aef7a906 (patch)
tree07d45620464a2542cb28fbe773f652501e6ee6fb /src/render/safeopenglgraphics.cpp
parentcccb3e11663eb415b9b6c9a184e1c17762a2d989 (diff)
downloadplus-f315432679f760b71505e74dcb2185b7aef7a906.tar.gz
plus-f315432679f760b71505e74dcb2185b7aef7a906.tar.bz2
plus-f315432679f760b71505e74dcb2185b7aef7a906.tar.xz
plus-f315432679f760b71505e74dcb2185b7aef7a906.zip
change smaller letter literalt into capital letter.
Diffstat (limited to 'src/render/safeopenglgraphics.cpp')
-rw-r--r--src/render/safeopenglgraphics.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/render/safeopenglgraphics.cpp b/src/render/safeopenglgraphics.cpp
index 7f0e375b6..cd3338188 100644
--- a/src/render/safeopenglgraphics.cpp
+++ b/src/render/safeopenglgraphics.cpp
@@ -41,7 +41,7 @@ SafeOpenGLGraphics::SafeOpenGLGraphics():
mTexture(false),
mIsByteColor(false),
mByteColor(),
- mFloatColor(1.0f),
+ mFloatColor(1.0F),
mColorAlpha(false),
mFbo()
{
@@ -220,7 +220,7 @@ bool SafeOpenGLGraphics::drawRescaledImage(const Image *const image, int srcX,
if (smooth) // A basic smooth effect...
{
- setColorAlpha(0.2f);
+ setColorAlpha(0.2F);
drawRescaledQuad(image, srcX, srcY, dstX - 1, dstY - 1, width, height,
desiredWidth + 1, desiredHeight + 1);
drawRescaledQuad(image, srcX, srcY, dstX + 1, dstY + 1, width, height,
@@ -531,12 +531,12 @@ void SafeOpenGLGraphics::drawLine(int x1, int y1, int x2, int y2)
restoreColor();
glBegin(GL_LINES);
- glVertex2f(static_cast<float>(x1) + 0.5f, static_cast<float>(y1) + 0.5f);
- glVertex2f(static_cast<float>(x2) + 0.5f, static_cast<float>(y2) + 0.5f);
+ glVertex2f(static_cast<float>(x1) + 0.5F, static_cast<float>(y1) + 0.5F);
+ glVertex2f(static_cast<float>(x2) + 0.5F, static_cast<float>(y2) + 0.5F);
glEnd();
glBegin(GL_POINTS);
- glVertex2f(static_cast<float>(x2) + 0.5f, static_cast<float>(y2) + 0.5f);
+ glVertex2f(static_cast<float>(x2) + 0.5F, static_cast<float>(y2) + 0.5F);
glEnd();
}
@@ -597,7 +597,7 @@ void SafeOpenGLGraphics::drawRectangle(const gcn::Rectangle& rect,
const bool filled)
{
BLOCK_START("Graphics::drawRectangle")
- const float offset = filled ? 0 : 0.5f;
+ const float offset = filled ? 0 : 0.5F;
setTexturingAndBlending(false);
restoreColor();
@@ -629,7 +629,7 @@ void SafeOpenGLGraphics::setColorAlpha(const float alpha)
if (!mIsByteColor && mFloatColor == alpha)
return;
- glColor4f(1.0f, 1.0f, 1.0f, alpha);
+ glColor4f(1.0F, 1.0F, 1.0F, alpha);
mIsByteColor = false;
mFloatColor = alpha;
}