Skip to content

Commit 84ef115

Browse files
committed
Remove un-used code
1 parent 25268d2 commit 84ef115

1 file changed

Lines changed: 0 additions & 44 deletions

File tree

src/gameobjects/bitmaptext/static/BitmapTextCanvasRenderer.js

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -81,50 +81,6 @@ var BitmapTextCanvasRenderer = function (renderer, src, interpolationPercentage,
8181
lineOffsetX = (lineData.longest - lineData.lengths[0]);
8282
}
8383

84-
/*
85-
// Alpha
86-
87-
var alpha = camera.alpha * src.alpha;
88-
89-
if (alpha === 0)
90-
{
91-
// Nothing to see, so abort early
92-
return;
93-
}
94-
95-
// Blend Mode
96-
ctx.globalCompositeOperation = renderer.blendModes[src.blendMode];
97-
98-
// Alpha
99-
ctx.globalAlpha = alpha;
100-
101-
var tx = (src.x - camera.scrollX * src.scrollFactorX) + src.frame.x;
102-
var ty = (src.y - camera.scrollY * src.scrollFactorY) + src.frame.y;
103-
104-
var roundPixels = camera.roundPixels;
105-
106-
if (roundPixels)
107-
{
108-
tx |= 0;
109-
ty |= 0;
110-
}
111-
112-
ctx.save();
113-
114-
if (parentMatrix)
115-
{
116-
parentMatrix.copyToContext(ctx);
117-
}
118-
119-
ctx.translate(tx, ty);
120-
121-
ctx.rotate(src.rotation);
122-
123-
ctx.translate(-src.displayOriginX, -src.displayOriginY);
124-
125-
ctx.scale(src.scaleX, src.scaleY);
126-
*/
127-
12884
ctx.translate(-src.displayOriginX, -src.displayOriginY);
12985

13086
var roundPixels = camera.roundPixels;

0 commit comments

Comments
 (0)