Skip to content

Commit 67e49b5

Browse files
committed
The PipelineManager.resize method along with WebGLPipeline.resize and anything else that extends them no longer receives or uses the resolution parameter.
1 parent 37a9261 commit 67e49b5

3 files changed

Lines changed: 8 additions & 22 deletions

File tree

src/renderer/webgl/PipelineManager.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ var PipelineManager = new Class({
175175
pipeline.boot();
176176
}
177177

178-
pipeline.resize(renderer.width, renderer.height, renderer.config.resolution);
178+
pipeline.resize(renderer.width, renderer.height);
179179

180180
return pipeline;
181181
},
@@ -190,15 +190,14 @@ var PipelineManager = new Class({
190190
*
191191
* @param {number} [width] - The new width of the renderer.
192192
* @param {number} [height] - The new height of the renderer.
193-
* @param {number} [resolution] - The new resolution of the renderer.
194193
*/
195-
resize: function (width, height, resolution)
194+
resize: function (width, height)
196195
{
197196
var pipelines = this.pipelines;
198197

199198
pipelines.each(function (pipelineName, pipelineInstance)
200199
{
201-
pipelineInstance.resize(width, height, resolution);
200+
pipelineInstance.resize(width, height);
202201
});
203202
},
204203

src/renderer/webgl/WebGLPipeline.js

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,6 @@ var WebGLPipeline = new Class({
8787
*/
8888
this.view = game.canvas;
8989

90-
/**
91-
* The current game resolution.
92-
* This is hard-coded to 1.
93-
*
94-
* @name Phaser.Renderer.WebGL.WebGLPipeline#resolution
95-
* @type {number}
96-
* @since 3.0.0
97-
*/
98-
this.resolution = 1;
99-
10090
/**
10191
* Width of the current viewport.
10292
*
@@ -371,15 +361,13 @@ var WebGLPipeline = new Class({
371361
*
372362
* @param {number} width - The new width of this WebGL Pipeline.
373363
* @param {number} height - The new height of this WebGL Pipeline.
374-
* @param {number} resolution - The resolution this WebGL Pipeline should be resized to.
375364
*
376365
* @return {this} This WebGLPipeline instance.
377366
*/
378-
resize: function (width, height, resolution)
367+
resize: function (width, height)
379368
{
380-
this.width = width * resolution;
381-
this.height = height * resolution;
382-
this.resolution = resolution;
369+
this.width = width;
370+
this.height = height;
383371

384372
return this;
385373
},

src/renderer/webgl/pipelines/MultiPipeline.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,13 +338,12 @@ var MultiPipeline = new Class({
338338
*
339339
* @param {number} width - The new width.
340340
* @param {number} height - The new height.
341-
* @param {number} resolution - The resolution.
342341
*
343342
* @return {this} This WebGLPipeline instance.
344343
*/
345-
resize: function (width, height, resolution)
344+
resize: function (width, height)
346345
{
347-
WebGLPipeline.prototype.resize.call(this, width, height, resolution);
346+
WebGLPipeline.prototype.resize.call(this, width, height);
348347

349348
ProjectOrtho(this, 0, this.width, this.height, 0, -1000, 1000);
350349

0 commit comments

Comments
 (0)