fix: distribute-sizes rounding remainder, render-screen uses backend-size

This commit is contained in:
Hermes Agent
2026-05-12 14:00:59 +00:00
parent 80abb23197
commit df5ceabd3b
2 changed files with 24 additions and 12 deletions

View File

@@ -32,9 +32,9 @@
(defun render-screen (root backend)
"Render the component tree ROOT using BACKEND.
Computes layout for dirty branches, calls render on each component,
and wraps output in synchronized updates."
(let ((w (available-width root))
(h (available-height root)))
and wraps output in synchronized updates. Uses the actual terminal
dimensions from BACKEND rather than hardcoded defaults."
(multiple-value-bind (w h) (backend-size backend)
(begin-sync backend)
(render-node root backend w h)
(end-sync backend)))