mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-14 05:24:44 +00:00
open_menu_with waited once for the samples rendering and then drew its last frame. A frame starts at most four samples, and none while eight are rendering, so that last frame could start the samples of the rows it showed instead of drawing them, and show_samples_on_white_draws_dark_type_on_white_in_every_brightness failed with "dark: samples are drawn" when the workers were slow. wait_for_samples now returns whether any sample was rendering, and the helper draws and waits until a frame leaves none rendering. Only test code changes: wait_for_samples is cfg(test) and open_menu_with is a test helper. Diagnosis and approach by Taha-Mahmoodi in #7093.