use output width/height instead of hardcoding
This commit is contained in:
parent
1875b87592
commit
8683fce4aa
4
rc.fnl
4
rc.fnl
@ -17,8 +17,8 @@
|
|||||||
(kiwmi:on
|
(kiwmi:on
|
||||||
"output"
|
"output"
|
||||||
(fn [output]
|
(fn [output]
|
||||||
(output:set_mode 360 720 0)
|
(resize-wayland-backend output)
|
||||||
(let [[width height] (output:size)
|
(let [(width height) (output:size)
|
||||||
r (output:renderer)
|
r (output:renderer)
|
||||||
kill (texture.from-file r "close-window.png")
|
kill (texture.from-file r "close-window.png")
|
||||||
launch (texture.from-file r "launcher.png")
|
launch (texture.from-file r "launcher.png")
|
||||||
|
Loading…
Reference in New Issue
Block a user