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