gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/lua-plot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'agg-plot/lua-plot.cpp')
-rw-r--r--agg-plot/lua-plot.cpp 6
1 files changed, 6 insertions, 0 deletions
diff --git a/agg-plot/lua-plot.cpp b/agg-plot/lua-plot.cpp
index 1a07330f..72f00ba0 100644
--- a/agg-plot/lua-plot.cpp
+++ b/agg-plot/lua-plot.cpp
@@ -312,9 +312,13 @@ int
plot_push_layer (lua_State *L)
{
lua_plot *p = object_check<lua_plot>(L, 1, GS_PLOT);
+
AGG_LOCK();
p->push_layer();
AGG_UNLOCK();
+
+ window_plot_rev_lookup_apply (L, 1, window_save_slot_image);
+
return 0;
}
@@ -337,6 +341,8 @@ plot_clear (lua_State *L)
p->clear_current_layer();
AGG_UNLOCK();
+ window_plot_rev_lookup_apply (L, 1, window_restore_slot_image);
+
if (p->sync_mode())
plot_update_raw (L, p, 1);
generated by cgit v1.2.3 (git 2.46.0) at 2025年10月02日 17:26:39 +0000

AltStyle によって変換されたページ (->オリジナル) /