mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-27 11:27:21 -06:00
blend_text_gamma_setting switched the compositor's process-wide text gamma (psblend::set_text_gamma) to 1.0 and back while other engine unit tests ran in parallel threads. turns_at_every_depth_and_mode flattens a document with a type layer before a turn and again after edit.undo; when the toggle landed between the two flattens, anti-aliased glyph edges blended under different gammas and the bit-exact comparison failed (seen once on Windows CI). Move the gamma test to crates/engine/tests/text_gamma.rs (its own process), document the hazard on set_text_gamma, and make the undo assertion report the turn, depth, mode, differing pixel count, max difference and first pixel. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>