Skip to content

Opacity Setting is incorrect.  #17

@tklee1975

Description

@tklee1975

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
          ......
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions