Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-03-24 11:52:14 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-24 11:52:14 +0400
commitb8a71efeba70d6c3ebc579f5043daa4162da86e8 (patch)
treed2d89da2a59f8955583f4968a35e48c578fd4d4c /source/gameengine/GamePlayer/common/GPC_RawImage.cpp
parent81d8f17843f92c6d6abbacb652ca22917910f4bc (diff)
style cleanup: follow style guide for/with/if spacing
Diffstat (limited to 'source/gameengine/GamePlayer/common/GPC_RawImage.cpp')
-rw-r--r--source/gameengine/GamePlayer/common/GPC_RawImage.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/gameengine/GamePlayer/common/GPC_RawImage.cpp b/source/gameengine/GamePlayer/common/GPC_RawImage.cpp
index 5bd3a1957e6..9f129c1cdfb 100644
--- a/source/gameengine/GamePlayer/common/GPC_RawImage.cpp
+++ b/source/gameengine/GamePlayer/common/GPC_RawImage.cpp
@@ -50,26 +50,26 @@ bool GPC_RawImage::Load(
{
int srcWidth, srcHeight;
bool success = true;
- if(strcmp(srcName, "BlenderLogo") == 0)
+ if (strcmp(srcName, "BlenderLogo") == 0)
GetRawBlenderLogo(&m_data, &srcWidth, &srcHeight);
else
- if(strcmp(srcName, "Blender3DLogo") == 0)
+ if (strcmp(srcName, "Blender3DLogo") == 0)
GetRawBlender3DLogo(&m_data, &srcWidth, &srcHeight);
#if 0
else
- if(strcmp(srcName, "NaNLogo") == 0)
+ if (strcmp(srcName, "NaNLogo") == 0)
GetRawNaNLogo(&m_data, &srcWidth, &srcHeight);
#endif
else // unknown image
success = false;
- if(success)
+ if (success)
{
unsigned char *tempData = m_data;
int numBytes = destWidth * destHeight * 4;
m_data = new unsigned char[numBytes]; // re-use m_data ('unsigned char' was 'char')
- if(m_data)
+ if (m_data)
{
::memset(m_data, 0x00000000, numBytes);
m_width = destWidth;
@@ -80,11 +80,11 @@ bool GPC_RawImage::Load(
int numRows = (srcHeight + offsetY) < m_height ? srcHeight : m_height - offsetY;
numBytes = (srcWidth + offsetX) < m_width ? srcBytesWidth : (m_width - offsetX) * 4;
- if((offsetX < m_width) && (offsetY < m_height))
+ if ((offsetX < m_width) && (offsetY < m_height))
{
unsigned char* src = (unsigned char*)tempData;
unsigned char* dst = (unsigned char*)m_data;
- if(alignment == alignTopLeft)
+ if (alignment == alignTopLeft)
{
// Put original in upper left corner