clone

fifteen puzzle games for the terminal, with daily puzzles, weekly ladders and xp, built on bubble tea

fix: forward WindowSizeMsg to game on all entry paths

Dami committed 8f8936d
The nonogram model needs terminal dimensions for mouse hit-testing, but
WindowSizeMsg only fires on startup (when state is mainMenuView) and on
resize. By the time the user enters gameView, no new WindowSizeMsg
arrives, leaving termWidth/termHeight at 0.

Send a synthetic WindowSizeMsg to the game in all three game-entry
paths: spawn complete, continue game, and daily puzzle resume.
commit
8f8936d995b708db2f35995cce89861a276c23c8
parent
15aadfb465dde22b6db065c473e722fa1e4fbadd
author
Dami <dami.etoile@gmail.com>
2 files changed, +3 -0
Mspawn.go1+
Mupdate.go2++
M spawn.go +1 -0
M update.go +2 -0