Files
photocraft/crates
Finn NewickandClaude Opus 5.5 f2ebff3de5 fix(ui): centre size-changing filter previews on the CPU canvas
A filter preview that changes the canvas's dimensions (Image > Image
Rotation) kept the unpreviewed document on the CPU canvas (a mirrored
or pixel-aspect view, no usable GPU, a GPU fallback), since drawing its
texture over the document's bounds stretched it. The CPU canvas now
draws it over its own area centred on the document's, as the GPU canvas
centres it (preview_bounds, CpuTextures::bounds), with the drop shadow,
checkerboard and rotated-view mapping on that area too. Such previews
redraw whole and have no detail texture (both work in the document's
pixels). Turning Preview off or cancelling restores the document.

Fixes #8989.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 22:00:37 +01:00
..
…
…
…