Commit 3b26866e authored by Julien Thomas's avatar Julien Thomas

Cleanup indentation in getPixelRatio()

parent 7b867f8c
...@@ -724,9 +724,11 @@ ...@@ -724,9 +724,11 @@
// therefore has a pixel ratio of 2, while most normal devices have a ratio of 1. // therefore has a pixel ratio of 2, while most normal devices have a ratio of 1.
function getPixelRatio(cctx) { function getPixelRatio(cctx) {
if (window.devicePixelRatio > 1 && (cctx.webkitBackingStorePixelRatio === undefined || cctx.webkitBackingStorePixelRatio < 2)) { if (window.devicePixelRatio > 1 &&
(cctx.webkitBackingStorePixelRatio === undefined ||
cctx.webkitBackingStorePixelRatio < 2))
return window.devicePixelRatio; return window.devicePixelRatio;
}
return 1; return 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment