author | francesco-ST <francesco.abbate@st.com> | 2010年07月22日 13:52:07 +0200 |
---|---|---|
committer | francesco-ST <francesco.abbate@st.com> | 2010年07月22日 13:52:07 +0200 |
commit | 741a111b1a6bb1d200f4c7aa4a02370d3acc25ea (patch) | |
tree | d6065d7ef54303b2fb638bc3e71cc37503d8ac32 /agg-plot/canvas-window.cpp | |
parent | c0c3170a5505e6a96e66ac64138f1c81654f2a6f (diff) | |
download | gsl-shell-741a111b1a6bb1d200f4c7aa4a02370d3acc25ea.tar.gz |
-rw-r--r-- | agg-plot/canvas-window.cpp | 18 |
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; } |