Skip to content

Commit 03e74b6

Browse files
committed
Fixed cocos2d#3568: Correct a bug that it can't see the progress text when contentScaleFactor sets.
1 parent ace50c9 commit 03e74b6

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

cocos2d/core/CCLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ cc.LoaderScene = cc.Scene.extend(/** @lends cc.LoaderScene# */{
450450
this._texture2d.initWithElement(this._logoTexture);
451451
this._texture2d.handleLoadedTexture();
452452
this._logo = cc.Sprite.createWithTexture(this._texture2d);
453-
453+
this._logo.setScale(cc.CONTENT_SCALE_FACTOR());
454454
this._logo.setPosition(centerPos);
455455
this._bgLayer.addChild(this._logo, 10);
456456
},

cocos2d/label_nodes/CCLabelBMFont.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,10 +1262,10 @@ cc.LabelBMFont = cc.SpriteBatchNode.extend(/** @lends cc.LabelBMFont# */{
12621262
});
12631263

12641264
/**
1265-
* creates a bitmap font altas with an initial string and the FNT file
1265+
* creates a bitmap font atlas with an initial string and the FNT file
12661266
* @param {String} str
12671267
* @param {String} fntFile
1268-
* @param {String} width
1268+
* @param {Number} width
12691269
* @param {Number} alignment
12701270
* @param {cc.Point} imageOffset
12711271
* @return {cc.LabelBMFont|Null}
@@ -1282,9 +1282,8 @@ cc.LabelBMFont = cc.SpriteBatchNode.extend(/** @lends cc.LabelBMFont# */{
12821282
cc.LabelBMFont.create = function (str, fntFile, width, alignment, imageOffset) {
12831283
var ret = new cc.LabelBMFont();
12841284
if (arguments.length == 0) {
1285-
if (ret && ret.init()) {
1285+
if (ret && ret.init())
12861286
return ret;
1287-
}
12881287
return null;
12891288
}
12901289

cocos2d/menu_nodes/CCMenuItem.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,8 @@ cc.MenuItemLabel = cc.MenuItem.extend(/** @lends cc.MenuItemLabel# */{
389389

390390
/**
391391
* @param {cc.Node} label
392-
* @param {function|String|Null} selector
393-
* @param {cc.Node|Null} target
392+
* @param {function|String|Null} [selector=]
393+
* @param {cc.Node|Null} [target=]
394394
* @return {cc.MenuItemLabel}
395395
*/
396396
cc.MenuItemLabel.create = function (label, selector, target) {

0 commit comments

Comments
 (0)