set scale via pixel count

This commit is contained in:
vapormusic 2021-12-27 14:22:22 +07:00
parent e45e88724d
commit c2149e2746

View file

@ -2572,5 +2572,6 @@ async function webGPU() {
webGPU().then() webGPU().then()
// let screenWidth = screen.width; let screenWidth = screen.width;
// ipcRenderer.send("setScreenScale" ,screenWidth / 1536) let screenHeight = screen.height;
ipcRenderer.send("setScreenScale" , (screenHeight * screenWidth) / (1536 * 864))