biscuit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit b216e9c331619618f656e16bb5bea6d6cd636f8b
parent 4c48b27164efa6045ab33eb2159c41ffbeb2924c
Author: Daniel Barlow <dan@telent.net>
Date:   Tue, 10 Mar 2026 09:18:43 +0000

allow overriding width/height

for testing on non-phone devices

Diffstat:
Mpkgs/maps/main.fnl | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkgs/maps/main.fnl b/pkgs/maps/main.fnl @@ -73,8 +73,8 @@ label.readout { ;; cage will launch the window maximised, ;; so these can be any value smaller than ;; the max size - :default_width 100 - :default_height 100 + :default_width (case (os.getenv "MAPS_WIDTH") x (tonumber x) nil 100) + :default_height (case (os.getenv "MAPS_HEIGHT") x (tonumber x) nil 100) :on_destroy main-quit :on_size_allocate (fn [w]