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
@@ -348,8 +348,9 @@ public:
rendered_since_last_pixel_ = false;
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));
}