author | francesco-ST <francesco.abbate@st.com> | 2010年09月22日 15:11:58 +0200 |
---|---|---|
committer | francesco-ST <francesco.abbate@st.com> | 2010年09月22日 15:11:58 +0200 |
commit | e82a04315810be635ccb66840fab5de8a5138556 (patch) | |
tree | ce6ae03acf08c275846c6c711e86e0b86fd03637 /agg-plot/window.cpp | |
parent | 5aeb9cb908fe17690b9d385812420e943168c1ca (diff) | |
download | gsl-shell-e82a04315810be635ccb66840fab5de8a5138556.tar.gz |
-rw-r--r-- | agg-plot/window.cpp | 5 |
diff --git a/agg-plot/window.cpp b/agg-plot/window.cpp index cdd32751..54abe5c7 100644 --- a/agg-plot/window.cpp +++ b/agg-plot/window.cpp @@ -254,9 +254,10 @@ window::refresh_slot_by_ref(ref& ref, bool draw_all) if (rect.is_defined()) { + const int m = 4; const agg::rect_base<double>& r = rect.rect(); - const agg::rect_base<int> ri(r.x1, r.y1, r.x2, r.y2); - update_region (ri, 4); + const agg::rect_base<int> ri(r.x1 - m, r.y1 - m, r.x2 + m, r.y2 + m); + update_region (ri); } } |