We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5113404 commit cb2d5b5Copy full SHA for cb2d5b5
cocos2d/ccTypes.h
@@ -171,11 +171,11 @@ static inline ccColor3B ccc3BFromccc4F(ccColor4F c)
171
*/
172
static inline ccColor4F ccc4FInterpolated(ccColor4F start, ccColor4F end, float t)
173
{
174
- start.r = end.r + (start.r - end.r ) * t;
175
- start.g = end.g + (start.g - end.g ) * t;
176
- start.b = end.b + (start.b - end.b ) * t;
177
- start.a = end.a + (start.a - end.a ) * t;
178
- return start;
+ end.r = start.r + (end.r - start.r ) * t;
+ end.g = start.g + (end.g - start.g ) * t;
+ end.b = start.b + (end.b - start.b ) * t;
+ end.a = start.a + (end.a - start.a ) * t;
+ return end;
179
}
180
181
/** A vertex composed of 2 GLfloats: x, y
0 commit comments