错误处理

This commit is contained in:
2026-08-16 20:39:12 +08:00
parent b33b57b0e3
commit 9d544c7ba9
44 changed files with 469 additions and 459 deletions
+2 -2
View File
@@ -160,7 +160,7 @@ struct Web_Plot_Session::Impl {
plot.activate_view();
update_model();
const auto initial_render = plot.render_frame(true);
if (initial_render != Plot_Render_Error::none)
if (initial_render != Plot_Render_Result::none)
plot.request_redraw();
}
~Impl() {
@@ -268,7 +268,7 @@ struct Web_Plot_Session::Impl {
if (!plot.view_active())
return std::nullopt;
update_model();
if (plot.render_frame(true) != Plot_Render_Error::none)
if (plot.render_frame(true) != Plot_Render_Result::none)
return std::nullopt;
std::string pixels;
const Color background = plot.background_color();