gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/lua-draw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'agg-plot/lua-draw.cpp')
-rw-r--r--agg-plot/lua-draw.cpp 5
1 files changed, 4 insertions, 1 deletions
diff --git a/agg-plot/lua-draw.cpp b/agg-plot/lua-draw.cpp
index 48e9580f..16ae5ea3 100644
--- a/agg-plot/lua-draw.cpp
+++ b/agg-plot/lua-draw.cpp
@@ -61,7 +61,7 @@ static struct path_cmd_reg cmd_table[] = {
{CMD_ERROR, NULL, NULL}
};
-static const struct luaL_Reg plot_functions[] = {
+static const struct luaL_Reg draw_functions[] = {
{"path", agg_path_new},
{"text", agg_text_new},
{"rgba", agg_rgba_new},
@@ -399,4 +399,7 @@ draw_register (lua_State *L)
lua_setfield (L, -2, "__index");
luaL_register (L, NULL, rgba_methods);
lua_pop (L, 1);
+
+ /* gsl module registration */
+ luaL_register (L, NULL, draw_functions);
}
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月18日 15:58:35 +0000

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