use output width/height instead of hardcoding

main
Daniel Barlow 2022-07-03 14:57:57 +01:00
parent 1875b87592
commit 8683fce4aa
1 changed files with 2 additions and 2 deletions

4
rc.fnl
View File

@ -17,8 +17,8 @@
(kiwmi:on
"output"
(fn [output]
(output:set_mode 360 720 0)
(let [[width height] (output:size)
(resize-wayland-backend output)
(let [(width height) (output:size)
r (output:renderer)
kill (texture.from-file r "close-window.png")
launch (texture.from-file r "launcher.png")