diff --git a/examples/text-selection/js/minimal.js b/examples/text-selection/js/minimal.js index 8ffa5f7e7..80a34cc4e 100644 --- a/examples/text-selection/js/minimal.js +++ b/examples/text-selection/js/minimal.js @@ -54,7 +54,7 @@ window.onload = function () { }); //The following few lines of code set up scaling on the context if we are on a HiDPI display - var outputScale = getOutputScale(); + var outputScale = getOutputScale(context); if (outputScale.scaled) { var cssScale = 'scale(' + (1 / outputScale.sx) + ', ' + (1 / outputScale.sy) + ')';