From 975bbb0229edfb8ca2be826994f5422a0c8d6c38 Mon Sep 17 00:00:00 2001 From: francesco-ST Date: 2010年7月30日 14:04:37 +0200 Subject: modified transformation hierarchy to use templates Now trans is a parametrised class that gives uniform acess to drawable and scalable objects. --- agg-plot/drawable.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'agg-plot/drawable.cpp') 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 -- cgit v1.2.3

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