Skip to content

Commit

Permalink
Fixed rendering problem related to dpi
Browse files Browse the repository at this point in the history
  • Loading branch information
derek1906 committed Jan 19, 2018
1 parent b1e2263 commit 8e1cb81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Graphics/Graphics.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Components.define(function(argFormatter, log){

function getPixelRatio(){
// pixel ratio has to be at least 1
return Math.max(window.devicePixelRatio, 1);
return Math.max(Math.floor(window.devicePixelRatio), 1);
}


Expand Down

0 comments on commit 8e1cb81

Please sign in to comment.