CCBReader icon indicating copy to clipboard operation
CCBReader copied to clipboard

Opacity Setting is incorrect.

Open tklee1975 opened this issue 12 years ago • 0 comments

CCBReader Version: #define kCCBVersion 5

Found a small bug of CCScale9Sprite when working the

Before bugfix:

- (void) updateWithBatchNode:(CCSpriteBatchNode *)batchnode rect:(CGRect)rect rotated:(BOOL)rotated capInsets:(CGRect)capInsets
{
    GLubyte opacity = opacity;   // opacity is always zero
          ......
}

After

- (void) updateWithBatchNode:(CCSpriteBatchNode *)batchnode rect:(CGRect)rect rotated:(BOOL)rotated capInsets:(CGRect)capInsets
{
    GLubyte opacity = self.opacity;   // opacity is assigned
          ......
}

tklee1975 avatar Nov 02 '13 15:11 tklee1975