mirror of
https://github.com/MeexReay/poshlostios.git
synced 2025-06-24 02:22:58 +03:00
startz fix 2x
This commit is contained in:
parent
149ce7072d
commit
ffbdf89609
@ -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
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user