high dpi detection

This commit is contained in:
booploops 2021-12-26 23:47:33 -08:00
parent f8b4827cf2
commit 997847e146
3 changed files with 6 additions and 3 deletions

View file

@ -194,6 +194,8 @@ const CiderBase = {
ipcMain.on('setScreenScale', (event, scale) => {
win.webContents.setZoomFactor(parseFloat(scale))
})
win.webContents.setZoomFactor(screen.getPrimaryDisplay().scaleFactor)
return win
},