gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/drawable.cpp
diff options
context:
space:
mode:
authorfrancesco-ST <francesco.abbate@st.com>2010年07月30日 14:04:37 +0200
committerfrancesco-ST <francesco.abbate@st.com>2010年07月30日 14:04:37 +0200
commit975bbb0229edfb8ca2be826994f5422a0c8d6c38 (patch)
treee9e9c6403e321597a276d7288d4c449d12d5d2c9 /agg-plot/drawable.cpp
parentd28a8f579f2e902f5bced91cbb726f7eca32b3a1 (diff)
downloadgsl-shell-975bbb0229edfb8ca2be826994f5422a0c8d6c38.tar.gz
modified transformation hierarchy to use templates
Now trans is a parametrised class that gives uniform acess to drawable and scalable objects.
Diffstat (limited to 'agg-plot/drawable.cpp')
-rw-r--r--agg-plot/drawable.cpp 3
1 files changed, 1 insertions, 2 deletions
diff --git a/agg-plot/drawable.cpp b/agg-plot/drawable.cpp
index 9bc80293..d2d18354 100644
--- a/agg-plot/drawable.cpp
+++ b/agg-plot/drawable.cpp
@@ -10,8 +10,7 @@ void
window_scalable::apply_transform(const agg::trans_affine& m)
{
m_trans.transformer(m);
- double as = trans_affine_max_norm (m);
- m_source->approximation_scale (as);
+ m_source->approximation_scale (m.scale());
}
void
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月16日 21:33:44 +0000

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