Skip to content

v1.7.1

Choose a tag to compare

@github-actions github-actions released this 12 Jul 04:55
6a9778f

Patch release: a single user-reported bugfix, no new scope.

Fixed

  • The wasm demo's canvas rendered at a smaller, fixed 2x scale instead of the 3x
    INITIAL_SCALE native launches at.
    App::create_window special-cased wasm32 to a hardcoded
    (512.0, 448.0) LogicalSize, deferring to web/index.html's own CSS (512x448) — but
    winit's web backend actually resizes the attached <canvas> to match the requested inner size,
    overriding that CSS regardless. RustyNES's own create_window requests NES_W * INITIAL_SCALE
    unconditionally (native and wasm alike), which is why its own demo already rendered at 3x — a
    user comparing the two demos side by side noticed the size difference. web/index.html's CSS
    updated to 896x728 (the new pre-JS fallback appearance, matching the actual chrome-padded 3x
    size) so there's no flash of the old size before winit applies the real one. Found in review
    (#82): the fallback CSS's fixed height paired with max-width: 96vw would have distorted the
    canvas on narrow viewports — switched to aspect-ratio + height: auto instead.