mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 12:42:06 +00:00
@ -321,10 +321,9 @@ async function createMainWindow() {
|
|||||||
const { x: windowX, y: windowY } = windowPosition;
|
const { x: windowX, y: windowY } = windowPosition;
|
||||||
const winSize = win.getSize();
|
const winSize = win.getSize();
|
||||||
const display = screen.getDisplayNearestPoint(windowPosition);
|
const display = screen.getDisplayNearestPoint(windowPosition);
|
||||||
const scaleFactor = is.windows() ? display.scaleFactor: 1;
|
|
||||||
|
|
||||||
const scaledWidth = Math.floor(windowSize.width / scaleFactor);
|
const scaledWidth = windowSize.width;
|
||||||
const scaledHeight = Math.floor(windowSize.height / scaleFactor);
|
const scaledHeight = windowSize.height;
|
||||||
|
|
||||||
const scaledX = windowX;
|
const scaledX = windowX;
|
||||||
const scaledY = windowY;
|
const scaledY = windowY;
|
||||||
|
|||||||
Reference in New Issue
Block a user