@@ -118,7 +118,7 @@ var TextureTintPipeline = new Class({
118118 var vertexViewU32 = this . vertexViewU32 ;
119119 var renderer = this . renderer ;
120120 var roundPixels = camera . roundPixels ;
121- var resolution = renderer . gameConfig . resolution ;
121+ var resolution = renderer . config . resolution ;
122122 var maxQuads = this . maxQuads ;
123123 var cameraScrollX = camera . scrollX ;
124124 var cameraScrollY = camera . scrollY ;
@@ -271,7 +271,7 @@ var TextureTintPipeline = new Class({
271271 var vertexViewU32 = this . vertexViewU32 ;
272272 var renderer = this . renderer ;
273273 var roundPixels = camera . roundPixels ;
274- var resolution = renderer . gameConfig . resolution ;
274+ var resolution = renderer . config . resolution ;
275275 var list = blitter . getRenderList ( ) ;
276276 var length = list . length ;
277277 var cameraMatrix = camera . matrix . matrix ;
@@ -285,8 +285,8 @@ var TextureTintPipeline = new Class({
285285 var cameraScrollY = camera . scrollY * blitter . scrollFactorY ;
286286 var batchCount = Math . ceil ( length / this . maxQuads ) ;
287287 var batchOffset = 0 ;
288- var blitterX = blitter . x ;
289- var blitterY = blitter . y ;
288+ var blitterX = blitter . x - cameraScrollX ;
289+ var blitterY = blitter . y - cameraScrollY ;
290290
291291 for ( var batchIndex = 0 ; batchIndex < batchCount ; ++ batchIndex )
292292 {
@@ -305,8 +305,8 @@ var TextureTintPipeline = new Class({
305305 var flipY = bob . flipY ;
306306 var width = frame . width * ( flipX ? - 1.0 : 1.0 ) ;
307307 var height = frame . height * ( flipY ? - 1.0 : 1.0 ) ;
308- var x = blitterX + bob . x + frame . x - cameraScrollX + ( width * ( ( flipX ) ? 1.0 : 0.0 ) ) ;
309- var y = blitterY + bob . y + frame . y - cameraScrollY + ( height * ( ( flipY ) ? 1.0 : 0.0 ) ) ;
308+ var x = blitterX + bob . x + frame . x + ( frame . width * ( ( flipX ) ? 1.0 : 0.0 ) ) ;
309+ var y = blitterY + bob . y + frame . y + ( frame . height * ( ( flipY ) ? 1.0 : 0.0 ) ) ;
310310 var xw = x + width ;
311311 var yh = y + height ;
312312 var tx0 = x * a + y * c + e ;
@@ -391,7 +391,7 @@ var TextureTintPipeline = new Class({
391391 var vertexViewU32 = this . vertexViewU32 ;
392392 var renderer = this . renderer ;
393393 var roundPixels = camera . roundPixels ;
394- var resolution = renderer . gameConfig . resolution ;
394+ var resolution = renderer . config . resolution ;
395395 var cameraMatrix = camera . matrix . matrix ;
396396 var frame = sprite . frame ;
397397 var texture = frame . texture . source [ frame . sourceIndex ] . glTexture ;
@@ -523,7 +523,7 @@ var TextureTintPipeline = new Class({
523523 var vertexViewU32 = this . vertexViewU32 ;
524524 var renderer = this . renderer ;
525525 var roundPixels = camera . roundPixels ;
526- var resolution = renderer . gameConfig . resolution ;
526+ var resolution = renderer . config . resolution ;
527527 var cameraMatrix = camera . matrix . matrix ;
528528 var a = cameraMatrix [ 0 ] ;
529529 var b = cameraMatrix [ 1 ] ;
@@ -605,7 +605,7 @@ var TextureTintPipeline = new Class({
605605 var vertexViewU32 = this . vertexViewU32 ;
606606 var renderer = this . renderer ;
607607 var roundPixels = camera . roundPixels ;
608- var resolution = renderer . gameConfig . resolution ;
608+ var resolution = renderer . config . resolution ;
609609 var cameraMatrix = camera . matrix . matrix ;
610610 var cameraWidth = camera . width + 50 ;
611611 var cameraHeight = camera . height + 50 ;
@@ -820,7 +820,7 @@ var TextureTintPipeline = new Class({
820820 var vertexViewU32 = this . vertexViewU32 ;
821821 var renderer = this . renderer ;
822822 var roundPixels = camera . roundPixels ;
823- var resolution = renderer . gameConfig . resolution ;
823+ var resolution = renderer . config . resolution ;
824824 var cameraMatrix = camera . matrix . matrix ;
825825 var frame = bitmapText . frame ;
826826 var textureSource = bitmapText . texture . source [ frame . sourceIndex ] ;
@@ -1223,7 +1223,7 @@ var TextureTintPipeline = new Class({
12231223 var vertexViewU32 = this . vertexViewU32 ;
12241224 var renderer = this . renderer ;
12251225 var roundPixels = camera . roundPixels ;
1226- var resolution = renderer . gameConfig . resolution ;
1226+ var resolution = renderer . config . resolution ;
12271227 var cameraMatrix = camera . matrix . matrix ;
12281228 var width = srcWidth * ( flipX ? - 1.0 : 1.0 ) ;
12291229 var height = srcHeight * ( flipY ? - 1.0 : 1.0 ) ;
0 commit comments