From b55a4cf705a06ef2c9995da4d2784e8d5969ee3e Mon Sep 17 00:00:00 2001 From: francesco-ST Date: 2010年8月12日 11:51:29 +0200 Subject: added object index to manage both plot and windows Now both plot and windows gets an id which is used to manage userdata cross-references. --- agg-plot/lua-plot-cpp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'agg-plot/lua-plot-cpp.h') diff --git a/agg-plot/lua-plot-cpp.h b/agg-plot/lua-plot-cpp.h index 5e318dd0..6bfbe751 100644 --- a/agg-plot/lua-plot-cpp.h +++ b/agg-plot/lua-plot-cpp.h @@ -19,7 +19,7 @@ private: plot_type m_plot; public: - lua_plot() : m_plot(), id(-1) { }; + lua_plot() : m_plot(), window_id(-1), id(-1) { }; void update_window(lua_State *L); @@ -27,6 +27,7 @@ public: static lua_plot *check(lua_State *L, int index); + int window_id; int id; }; -- cgit v1.2.3

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