1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-06 22:02:07 -04:00

fix: correct preview centering with scaling (#1701)

This commit is contained in:
xdenotte
2026-02-16 23:47:21 +01:00
committed by GitHub
parent 50b77dcfc3
commit 45b6362dd3

View File

@@ -21,8 +21,9 @@ Rectangle {
continue;
const x = output.logical.x;
const y = output.logical.y;
const w = output.logical.width || 1920;
const h = output.logical.height || 1080;
const size = DisplayConfigState.getLogicalSize(output);
const w = size.w || 1920;
const h = size.h || 1080;
minX = Math.min(minX, x);
minY = Math.min(minY, y);
maxX = Math.max(maxX, x + w);