author | francesco-ST <francesco.abbate@st.com> | 2010年08月12日 11:51:29 +0200 |
---|---|---|
committer | francesco-ST <francesco.abbate@st.com> | 2010年08月12日 11:51:29 +0200 |
commit | b55a4cf705a06ef2c9995da4d2784e8d5969ee3e (patch) | |
tree | cee3a5404dee2d8a74fb60c0d5daad1985f8b402 /agg-plot/canvas-window.cpp | |
parent | 9529186aacd0d02d6b609cec247ab6b4610fd342 (diff) | |
download | gsl-shell-b55a4cf705a06ef2c9995da4d2784e8d5969ee3e.tar.gz |
-rw-r--r-- | agg-plot/canvas-window.cpp | 6 |
diff --git a/agg-plot/canvas-window.cpp b/agg-plot/canvas-window.cpp index 9302b46e..a997c4b7 100644 --- a/agg-plot/canvas-window.cpp +++ b/agg-plot/canvas-window.cpp @@ -31,7 +31,7 @@ extern "C" { #include "agg-parse-trans.h" #include "lua-cpp-utils.h" #include "lua-utils.h" -#include "window-refs.h" +#include "object-index.h" #include "lua-draw.h" #include "gs-types.h" #include "colors.h" @@ -109,7 +109,7 @@ canvas_window::start_new_thread (lua_State *L) if (status != not_ready && status != closed) return; - this->id = window_ref_add (L, lua_gettop (L)); + this->id = object_index_add (L, OBJECT_WINDOW, -1); pthread_attr_t attr[1]; pthread_t win_thread[1]; @@ -121,7 +121,7 @@ canvas_window::start_new_thread (lua_State *L) if (pthread_create(win_thread, attr, canvas_thread_function, (void*) this)) { - window_ref_remove (L, this->id); + object_index_remove (L, OBJECT_WINDOW, this->id); pthread_attr_destroy (attr); this->status = canvas_window::error; |