@@ -252,8 +252,8 @@ var World = new Class({
252252 {
253253 var x = GetFastValue ( boundsConfig , 'x' , 0 ) ;
254254 var y = GetFastValue ( boundsConfig , 'y' , 0 ) ;
255- var width = GetFastValue ( boundsConfig , 'width' , scene . sys . game . config . width ) ;
256- var height = GetFastValue ( boundsConfig , 'height' , scene . sys . game . config . height ) ;
255+ var width = GetFastValue ( boundsConfig , 'width' , scene . sys . scale . width ) ;
256+ var height = GetFastValue ( boundsConfig , 'height' , scene . sys . scale . height ) ;
257257 var thickness = GetFastValue ( boundsConfig , 'thickness' , 64 ) ;
258258 var left = GetFastValue ( boundsConfig , 'left' , true ) ;
259259 var right = GetFastValue ( boundsConfig , 'right' , true ) ;
@@ -425,8 +425,8 @@ var World = new Class({
425425 {
426426 if ( x === undefined ) { x = 0 ; }
427427 if ( y === undefined ) { y = 0 ; }
428- if ( width === undefined ) { width = this . scene . sys . game . config . width ; }
429- if ( height === undefined ) { height = this . scene . sys . game . config . height ; }
428+ if ( width === undefined ) { width = this . scene . sys . scale . width ; }
429+ if ( height === undefined ) { height = this . scene . sys . scale . height ; }
430430 if ( thickness === undefined ) { thickness = 64 ; }
431431 if ( left === undefined ) { left = true ; }
432432 if ( right === undefined ) { right = true ; }
0 commit comments