Skip to content

Commit 24ed0d2

Browse files
author
pandamicro
committed
Small improvements
1 parent 18b867f commit 24ed0d2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

cocos2d/core/CCDirector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ cc.Director.PROJECTION_3D = 1;
939939
cc.Director.PROJECTION_CUSTOM = 3;
940940

941941
/**
942-
* Constant for default projection of cc.Director, default projection is 3D projection
942+
* Constant for default projection of cc.Director, default projection is 2D projection
943943
* @constant
944944
* @type {Number}
945945
*/

cocos2d/core/CCDirectorWebGL.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ cc.game.addEventListener(cc.game.EVENT_RENDERER_INITED, function () {
177177
};
178178

179179
_p.getZEye = function () {
180-
return (this._winSizeInPoints.height / 1.1566 );
180+
return (this._winSizeInPoints.height / 1.15469993750 );
181181
};
182182

183183
_p.setViewport = function () {

cocos2d/core/platform/CCConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ window["CocosEngine"] = cc.ENGINE_VERSION = "Cocos2d-JS v3.14";
5656
* @constant
5757
* @type {Number}
5858
*/
59-
cc.FIX_ARTIFACTS_BY_STRECHING_TEXEL = 1;
59+
cc.FIX_ARTIFACTS_BY_STRECHING_TEXEL = 0;
6060

6161
/**
6262
* Position of the FPS (Default: 0,0 (bottom-left corner))<br/>

cocos2d/core/platform/CCEGLView.js

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ cc.EGLView = cc.Class.extend(/** @lends cc.view# */{
303303
*/
304304
setOrientation: function (orientation) {
305305
orientation = orientation & cc.ORIENTATION_AUTO;
306-
if (orientation) {
306+
if (orientation && this._orientation !== orientation) {
307307
this._orientation = orientation;
308308
var designWidth = this._originalDesignResolutionSize.width;
309309
var designHeight = this._originalDesignResolutionSize.height;

0 commit comments

Comments
 (0)