Skip to content

Commit

Permalink
Changed to use_device_pixel_ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
vkalpias committed Jun 25, 2015
1 parent 9202d10 commit bfc99b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/framework/framework_application.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,10 @@ pc.extend(pc, function () {
_parseApplicationProperties: function (props, callback) {
this._width = props['width'];
this._height = props['height'];
this.graphicsDevice.maxPixelRatio = props['max_pixel_ratio'] || 1;
if (props['use_device_pixel_ratio']) {
this.graphicsDevice.maxPixelRatio = window.devicePixelRatio;
}

this.setCanvasResolution(props['resolution_mode'], this._width, this._height);
this.setCanvasFillMode(props['fill_mode'], this._width, this._height);

Expand Down

0 comments on commit bfc99b1

Please sign in to comment.