src/video/renderer.js
function (width, height) {
            if (width !== this.backBufferCanvas.width || height !== this.backBufferCanvas.height) {
                this.canvas.width = this.backBufferCanvas.width = width;
                this.canvas.height = this.backBufferCanvas.height = height;
                this.currentScissor[0] = 0;
                this.currentScissor[1] = 0;
                this.currentScissor[2] = width;
                this.currentScissor[3] = height;
                // publish the corresponding event
                me.event.publish(me.event.CANVAS_ONRESIZE, [ width, height ]);
            }
            this.updateBounds();
        }
function (width, height) {
            if (width !== this.backBufferCanvas.width || height !== this.backBufferCanvas.height) {
                this.canvas.width = this.backBufferCanvas.width = width;
                this.canvas.height = this.backBufferCanvas.height = height;
                this.currentScissor[0] = 0;
                this.currentScissor[1] = 0;
                this.currentScissor[2] = width;
                this.currentScissor[3] = height;
                // publish the corresponding event
                me.event.publish(me.event.CANVAS_ONRESIZE, [ width, height ]);
            }
            this.updateBounds();
        }
function ( width , height ) { if ( width !== this . backBufferCanvas . width || height !== this . backBufferCanvas . height ) { this . canvas . width = this . backBufferCanvas . width = width ; this . canvas . height = this . backBufferCanvas . height = height ; this . currentScissor [ 0 ] = 0 ; this . currentScissor [ 1 ] = 0 ; this . currentScissor [ 2 ] = width ; this . currentScissor [ 3 ] = height ; // publish the corresponding event me . event . publish ( me . event . CANVAS_ONRESIZE , [ width , height ] ) ; } this . updateBounds ( ) ; }
resizes the system canvas
@name resize
@memberOf me.Renderer.prototype
@function
@param {Number} width new width of the canvas
@param {Number} height new height of the canvas
resizes the system canvas