changed scalable/drawable object base class to boxed pointers for Lua compat - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/trans.h
diff options
context:
space:
mode:
authorfrancesco-ST <francesco.abbate@st.com>2010年10月21日 17:54:30 +0200
committerfrancesco-ST <francesco.abbate@st.com>2010年10月21日 17:54:30 +0200
commitf2a6a9203f69006b9aee94f96dc19d638047f67a (patch)
treeab19e56a5695a4e2efcb52c6c7e9837abacbc098 /agg-plot/trans.h
parentc2531ad7f2dc7bfae6357bacc28e7f6a3591d48d (diff)
downloadgsl-shell-f2a6a9203f69006b9aee94f96dc19d638047f67a.tar.gz
changed scalable/drawable object base class to boxed pointers for Lua compat
This change is meant to avoid to access object already deallocated by Lua.
Diffstat (limited to 'agg-plot/trans.h')
-rw-r--r--agg-plot/trans.h 8
1 files changed, 4 insertions, 4 deletions
diff --git a/agg-plot/trans.h b/agg-plot/trans.h
index 9249cb2a..00bd40c2 100644
--- a/agg-plot/trans.h
+++ b/agg-plot/trans.h
@@ -88,15 +88,15 @@ struct trans {
};
};
- typedef agg::conv_transform<scalable> symbol_type;
+ typedef agg::conv_transform<vertex_source> symbol_type;
typedef my::conv_simple_marker<base_type, symbol_type> marker_base;
typedef typename context::template adapter<marker_base, false> vs_marker;
class marker : public vs_marker {
double m_size;
- scalable* m_symbol;
+ vertex_source* m_symbol;
agg::trans_affine m_matrix;
- agg::conv_transform<scalable> m_trans;
+ agg::conv_transform<vertex_source> m_trans;
public:
marker(base_type* src, double size, const char *sym):
@@ -109,7 +109,7 @@ struct trans {
~marker()
{
- lua_management::dispose(m_symbol);
+ delete m_symbol;
};
virtual void apply_transform(const agg::trans_affine& m, double as)
generated by cgit v1.2.3 (git 2.39.1) at 2025年10月01日 00:25:09 +0000

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