startz fix 2x

This commit is contained in:
MeexReay 2025-03-22 01:57:11 +03:00
parent 149ce7072d
commit ffbdf89609

View File

@ -7,14 +7,18 @@ async function main(args) {
let ctx = getGraphics() let ctx = getGraphics()
setInterval(() => { while (true) {
ctx.fillStyle = "black" ctx.fillStyle = "black"
ctx.fillRect(0, 0, ctx.canvas.width, ctx.canvas.height) ctx.fillRect(0, 0, ctx.canvas.width, ctx.canvas.height)
for (const win of window.mxwm_windows) { for (const win of window.mxwm_windows) {
ctx.drawImage(win.canvas, win.x, win.y); ctx.drawImage(win.canvas, win.x, win.y);
} }
}, 1000 / 60)
await new Promise(resolve => setTimeout(resolve, 1000 / 60))
}
disableGraphics() disableGraphics()
return 0
} }