This commit is contained in:
2026-08-15 21:48:23 +08:00
parent 26bbc29a16
commit 023250c0fc
45 changed files with 457 additions and 415 deletions
+3 -2
View File
@@ -270,8 +270,9 @@ struct Web_Plot_Session::Impl {
return std::nullopt;
std::string pixels;
const Color background = plot.background_color();
plot.with_frame([&pixels, background](Image_View image) {
pixels = encode_pixel_frame(image, background);
const std::uint64_t sequence = plot.frame_status().latest_sequence;
plot.with_frame([&pixels, background, sequence](Image_View image) {
pixels = encode_pixel_frame(image, sequence, background);
});
return pixels.empty() ? std::nullopt : std::optional<std::string>(std::move(pixels));
}