minor fixes/improvements related to the plot windows - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/window.cpp
diff options
context:
space:
mode:
authorfrancesco-ST <francesco.abbate@st.com>2010年09月22日 15:11:58 +0200
committerfrancesco-ST <francesco.abbate@st.com>2010年09月22日 15:11:58 +0200
commite82a04315810be635ccb66840fab5de8a5138556 (patch)
treece6ae03acf08c275846c6c711e86e0b86fd03637 /agg-plot/window.cpp
parent5aeb9cb908fe17690b9d385812420e943168c1ca (diff)
downloadgsl-shell-e82a04315810be635ccb66840fab5de8a5138556.tar.gz
minor fixes/improvements related to the plot windows
Added a flag on window to unlock only when the plot window has been actually repainted.
Diffstat (limited to 'agg-plot/window.cpp')
-rw-r--r--agg-plot/window.cpp 5
1 files changed, 3 insertions, 2 deletions
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);
}
}
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月12日 20:42:59 +0000

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