mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 09:26:43 +00:00
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>