From 741a111b1a6bb1d200f4c7aa4a02370d3acc25ea Mon Sep 17 00:00:00 2001 From: francesco-ST Date: 2010年7月22日 13:52:07 +0200 Subject: fix in the lock/unlock of drawing methods --- agg-plot/canvas-window.cpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'agg-plot/canvas-window.cpp') diff --git a/agg-plot/canvas-window.cpp b/agg-plot/canvas-window.cpp index 0130e30a..eec93f59 100644 --- a/agg-plot/canvas-window.cpp +++ b/agg-plot/canvas-window.cpp @@ -77,6 +77,7 @@ canvas_window::on_init() this->on_resize(width(), height()); } +/* void canvas_window::start() { @@ -96,6 +97,7 @@ canvas_window::start() this->unlock(); } +*/ void canvas_window::start_new_thread (lua_State *L) @@ -130,7 +132,21 @@ canvas_thread_function (void *_win) platform_support_prepare(); canvas_window *win = (canvas_window *) _win; - win->start(); + + win->caption("GSL shell plot"); + if (win->init(480, 480, agg::window_resize)) + { + win->status = canvas_window::running; + win->run(); + win->status = canvas_window::closed; + + GSL_SHELL_LOCK(); + gsl_shell_unref_plot (win->id); + GSL_SHELL_UNLOCK(); + } + + win->unlock(); + return NULL; } -- cgit v1.2.3

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