gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/canvas-window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'agg-plot/canvas-window.cpp')
-rw-r--r--agg-plot/canvas-window.cpp 18
1 files changed, 17 insertions, 1 deletions
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;
}
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月21日 22:05:41 +0000

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