X-Git-Url: https://git.sesse.net/?p=pr0n;a=blobdiff_plain;f=files%2Fpr0n-fullscreen.js;h=789cda741f5c15ab6f4c88e31dba5489ff0025a5;hp=79c174b72c35f36c0918bc8a0ec1f073c56f6c5b;hb=bf395f582ddf4acd911cdeecca86b24fbc0e833f;hpb=acc5b53241d0e971595d6017c60f54a6bc057c41;ds=sidebyside diff --git a/files/pr0n-fullscreen.js b/files/pr0n-fullscreen.js index 79c174b..789cda7 100644 --- a/files/pr0n-fullscreen.js +++ b/files/pr0n-fullscreen.js @@ -174,7 +174,7 @@ function display_image(width, height, evt, filename, element_id) if (dpr == 1) { url = "http://" + global_vhost + "/" + evt + "/" + width + "x" + height + "/box/" + filename; } else { - url = "http://" + global_vhost + "/" + evt + "/" + width + "x" + height + "@" + dpr + "/box/" + filename; + url = "http://" + global_vhost + "/" + evt + "/" + width + "x" + height + "@" + dpr.toFixed(2) + "/box/" + filename; } var boximg = replace_image_element(url, element_id + "_box", main);