Fix infobox with DPR != 1.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 6 Jul 2020 14:20:11 +0000 (16:20 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 6 Jul 2020 14:20:11 +0000 (16:20 +0200)
files/pr0n-fullscreen.js

index 14b080d5d830766750c0c9ac69b14dba4f11beff..e81fd37886a6a3e718a1be8c4c94b760abf6c553 100644 (file)
@@ -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);
                        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) {
        }
 
        if (offset === 0) {