set scale via pixel count
This commit is contained in:
parent
e45e88724d
commit
c2149e2746
1 changed files with 3 additions and 2 deletions
|
@ -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))
|
Loading…
Add table
Add a link
Reference in a new issue