mirror of https://github.com/axmolengine/axmol.git
remove duplicate codes
This commit is contained in:
parent
c58a63aa92
commit
c13965c939
|
@ -266,12 +266,6 @@ static bool _initWithString(const char * pText, cocos2d::CCImage::ETextAlign eAl
|
|||
dim.height = constrainSize.height;
|
||||
}
|
||||
|
||||
dim.width = (int)(dim.width / 2) * 2 + 2;
|
||||
dim.height = (int)(dim.height / 2) * 2 + 2;
|
||||
|
||||
dim.width = (int)(dim.width / 2) * 2 + 2;
|
||||
dim.height = (int)(dim.height / 2) * 2 + 2;
|
||||
|
||||
unsigned char* data = new unsigned char[(int)(dim.width * dim.height * 4)];
|
||||
memset(data, 0, (int)(dim.width * dim.height * 4));
|
||||
|
||||
|
|
Loading…
Reference in New Issue