Bug 1779001 - Fix WindowsPreviewerPerTab scale computation. r=Gijs

Seems this code has ~0 tests :-(

It also seems to have a dpi issue but that is pre-existing (tab contents look
blurry).

Differential Revision: https://phabricator.services.mozilla.com/D151644
This commit is contained in:
Emilio Cobos Álvarez 2022-07-12 18:09:50 +00:00
Родитель c732482954
Коммит ebd461b686
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -286,7 +286,7 @@ PreviewController.prototype = {
composite.mozOpaque = false;
let ctx = composite.getContext("2d");
let scale = this.win.devicePixelRatio;
let scale = this.win.win.devicePixelRatio;
composite.width = winWidth * scale;
composite.height = winHeight * scale;