改进
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user