Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ var Stats = function () {
Stats.Panel = function ( name, fg, bg ) {

var min = Infinity, max = 0, round = Math.round;
var PR = round( window.devicePixelRatio || 1 );
var PR = round( window.devicePixelRatio ) || 1;

var WIDTH = 80 * PR, HEIGHT = 48 * PR,
TEXT_X = 3 * PR, TEXT_Y = 2 * PR,
Expand Down
2 changes: 1 addition & 1 deletion build/stats.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/stats.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ var Stats = function () {
Stats.Panel = function ( name, fg, bg ) {

var min = Infinity, max = 0, round = Math.round;
var PR = round( window.devicePixelRatio || 1 );
var PR = round( window.devicePixelRatio ) || 1;

var WIDTH = 80 * PR, HEIGHT = 48 * PR,
TEXT_X = 3 * PR, TEXT_Y = 2 * PR,
Expand Down
2 changes: 1 addition & 1 deletion src/Stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ var Stats = function () {
Stats.Panel = function ( name, fg, bg ) {

var min = Infinity, max = 0, round = Math.round;
var PR = round( window.devicePixelRatio || 1 );
var PR = round( window.devicePixelRatio ) || 1;

var WIDTH = 80 * PR, HEIGHT = 48 * PR,
TEXT_X = 3 * PR, TEXT_Y = 2 * PR,
Expand Down