mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-14 09:42:10 -04:00
fix: correct preview centering with scaling (#1701)
This commit is contained in:
@@ -21,8 +21,9 @@ Rectangle {
|
|||||||
continue;
|
continue;
|
||||||
const x = output.logical.x;
|
const x = output.logical.x;
|
||||||
const y = output.logical.y;
|
const y = output.logical.y;
|
||||||
const w = output.logical.width || 1920;
|
const size = DisplayConfigState.getLogicalSize(output);
|
||||||
const h = output.logical.height || 1080;
|
const w = size.w || 1920;
|
||||||
|
const h = size.h || 1080;
|
||||||
minX = Math.min(minX, x);
|
minX = Math.min(minX, x);
|
||||||
minY = Math.min(minY, y);
|
minY = Math.min(minY, y);
|
||||||
maxX = Math.max(maxX, x + w);
|
maxX = Math.max(maxX, x + w);
|
||||||
|
|||||||
Reference in New Issue
Block a user