Files
arek bf426d1e06 docs: archive arena-size change and sync specs
Archive completed change and add arena-sizing main spec.
2026-11-08 16:11:03 +01:00

27 lines
900 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Proposal
## Why
The current default arena is 400×400 logical pixels (50×50 cells), too small for comfortable exploration. The arena should occupy about 80% of a FullHD screen, adapting to the actual output size and scale.
## What Changes
- Use `wl_output` mode dimensions to compute a default logical window size equal to 80% of the output, divided by the active scale.
- Keep the 8 px logical cell size; grid dimensions derive from the logical window size.
- Preserve resizable behavior and grid recalculation on resize.
- Provide a sensible fallback when output info is unavailable.
## Capabilities
### New Capabilities
- `arena-sizing`: output-aware default arena size (~80% of screen) with fallback and resize handling.
### Modified Capabilities
None.
## Impact
- Affected code: `wlgol.c` (output mode handling, default size calculation, canvas/grid resize).
- No new dependencies.