Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different declaration on CCLayerColor::setContentSize #1079

Closed
maxwzg opened this issue Jul 2, 2012 · 2 comments
Closed

Different declaration on CCLayerColor::setContentSize #1079

maxwzg opened this issue Jul 2, 2012 · 2 comments

Comments

@maxwzg
Copy link

maxwzg commented Jul 2, 2012

setContentSize on CCNode is:
void CCNode::setContentSize(CCSize size)

but CCLayerColor is:
void CCLayerColor::setContentSize(const CCSize& size)

so CCLayerColor can't override contentSize

@maxwzg
Copy link
Author

maxwzg commented Jul 2, 2012

CCLayerColor::setContentSize need change to void CCLayerColor::setContentSize(CCSize size) ?

@walzer
Copy link
Contributor

walzer commented Jul 3, 2012

Oh, that's bug. Thanks for you report. I created http://www.cocos2d-x.org/issues/1381 to trace it.
I think change the declaration in CCNode is better.

@minggo minggo closed this as completed Aug 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants