diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/render.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/render.lua b/test/render.lua index 3ed5f7e..cc88317 100644 --- a/test/render.lua +++ b/test/render.lua @@ -3,13 +3,13 @@ -- Conky ships its Cairo bindings as a loadable module, so a widget's draw() -- can be called against an image surface from plain Lua. That turns -- edit-install-restart-toggle-screenshot into one command, which is how the --- weather card's proportions were fixed. +-- cards' proportions were fixed. -- --- lua test/render.lua weather 16 12 3 5 /tmp/w.png +-- lua test/render.lua now 16 12 3 5 /tmp/w.png -- -- Caveat: this crops to the single card. It says nothing about how the card --- looks NEXT to its neighbours, which is a real failure mode (the weather --- card's type once looked fine here and tiny beside the clock). Check the +-- looks NEXT to its neighbours, which is a real failure mode (a card's +-- type once looked fine here and tiny beside the clock). Check the -- live dashboard before believing anything about relative size. package.cpath = '/usr/lib64/conky/lib?.so;' .. package.cpath @@ -89,4 +89,4 @@ end cairo_destroy(cr) cairo_surface_write_to_png(surf, out) cairo_surface_destroy(surf) -print(string.format('%s at %dx%d on a %dx%d grid -> %s', widget_name, wspan, hspan, COLS, ROWS, out)) +print(string.format('%s at %gx%g on a %dx%d grid -> %s', widget_name, wspan, hspan, COLS, ROWS, out)) |
