gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/lua-plot.cpp
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2010年09月19日 20:05:31 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2010年09月19日 20:05:31 +0200
commita648800282d2bd763fbf6a182a1673b1f7ac4596 (patch)
treea3a7ce9f4282d4fb0a5cdc9a087a7a7a1ebf06d8 /agg-plot/lua-plot.cpp
parent1aaf01518a0c6bfe971e55dd53b6772f3d0276f7 (diff)
downloadgsl-shell-a648800282d2bd763fbf6a182a1673b1f7ac4596.tar.gz
optimisation of color allocation strategy
Diffstat (limited to 'agg-plot/lua-plot.cpp')
-rw-r--r--agg-plot/lua-plot.cpp 5
1 files changed, 3 insertions, 2 deletions
diff --git a/agg-plot/lua-plot.cpp b/agg-plot/lua-plot.cpp
index d230b6b8..c98dcca3 100644
--- a/agg-plot/lua-plot.cpp
+++ b/agg-plot/lua-plot.cpp
@@ -146,8 +146,9 @@ int
plot_add_gener (lua_State *L, bool as_line)
{
lua_plot *p = object_check<lua_plot>(L, 1, GS_PLOT);
- drawable *obj = parse_graph_args (L);
- agg::rgba8 *color = check_color_rgba8 (L, 3);
+
+ agg::rgba8 color;
+ drawable *obj = parse_graph_args (L, color);
object_refs_add (L, table_plot_obj, p->current_layer_index(), 1, 2);
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月12日 19:50:26 +0000

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