From 5e125fda482f5887459721b76ef24cf82aa4202b Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 6 Jul 2020 16:20:11 +0200 Subject: [PATCH] Fix infobox with DPR != 1. --- files/pr0n-fullscreen.js | 1 + 1 file changed, 1 insertion(+) diff --git a/files/pr0n-fullscreen.js b/files/pr0n-fullscreen.js index 14b080d..e81fd37 100644 --- a/files/pr0n-fullscreen.js +++ b/files/pr0n-fullscreen.js @@ -169,6 +169,7 @@ function display_image_num(num, offset) url = window.location.origin + "/" + evt + "/" + backend_width + "x" + backend_height + "@" + dpr.toFixed(2) + "/box/" + filename; } display_image(url, adjusted_size[2], adjusted_size[3], elem_id, offset, true); + document.getElementById(elem_id).style.transform += " scale(" + (1.0 / dpr) + ")"; } if (offset === 0) { -- 2.39.2