Skip to content

Commit ef0c30e

Browse files
authored
Merge pull request #1280 from th-ch/revert-scale-factor-patch
2 parents 0bee281 + 59ed232 commit ef0c30e

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

index.ts

+1-15
Original file line numberDiff line numberDiff line change
@@ -225,16 +225,6 @@ function createMainWindow() {
225225
});
226226
loadPlugins(win);
227227

228-
const scaleFactor = screen.getAllDisplays().length > 1 ? screen.getPrimaryDisplay().scaleFactor : 1;
229-
230-
if (windowSize) {
231-
const scaledSize = {
232-
width: windowSize.width / scaleFactor,
233-
height: windowSize.height / scaleFactor,
234-
};
235-
win.setSize(scaledSize.width, scaledSize.height);
236-
}
237-
238228
if (windowPosition) {
239229
const { x: windowX, y: windowY } = windowPosition;
240230
const winSize = win.getSize();
@@ -253,11 +243,7 @@ function createMainWindow() {
253243
);
254244
}
255245
} else {
256-
const scaledPosition = {
257-
x: windowX / scaleFactor,
258-
y: windowY / scaleFactor,
259-
};
260-
win.setPosition(scaledPosition.x, scaledPosition.y);
246+
win.setPosition(windowX, windowY);
261247
}
262248
}
263249

0 commit comments

Comments
 (0)