File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -204,9 +204,9 @@ cc.EGLView = cc.Class.extend(/** @lends cc.view# */{
204
204
// Resize helper functions
205
205
_resizeEvent : function ( ) {
206
206
var view ;
207
- if ( this . setDesignResolutionSize ) {
207
+ if ( this . setDesignResolutionSize ) {
208
208
view = this ;
209
- } else {
209
+ } else {
210
210
view = cc . view ;
211
211
}
212
212
@@ -222,8 +222,9 @@ cc.EGLView = cc.Class.extend(/** @lends cc.view# */{
222
222
}
223
223
var width = view . _originalDesignResolutionSize . width ;
224
224
var height = view . _originalDesignResolutionSize . height ;
225
- if ( width > 0 )
225
+ if ( width > 0 ) {
226
226
view . setDesignResolutionSize ( width , height , view . _resolutionPolicy ) ;
227
+ }
227
228
} ,
228
229
229
230
/**
@@ -339,6 +340,8 @@ cc.EGLView = cc.Class.extend(/** @lends cc.view# */{
339
340
_adjustViewportMeta : function ( ) {
340
341
if ( this . _isAdjustViewPort ) {
341
342
this . _setViewportMeta ( cc . __BrowserGetter . meta , false ) ;
343
+ // Only adjust viewport once
344
+ this . _isAdjustViewPort = false ;
342
345
}
343
346
} ,
344
347
Original file line number Diff line number Diff line change 51
51
return new cc . math . Vec3 ( x , y , z ) ;
52
52
} ;
53
53
54
- var _p = cc . math . Vec3 . _ptype ;
54
+ var _p = cc . math . Vec3 . prototype ;
55
55
56
56
_p . fill = function ( x , y , z ) { // =cc.kmVec3Fill
57
57
if ( x && y === undefined ) {
You can’t perform that action at this time.
0 commit comments