summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2007-12-16 23:34:06 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2007-12-16 23:34:06 +0000
commit4b6535cd5b8684fb858515b10581cec36216bb81 (patch)
tree5a538b6e9947a0fdfd0b58cff71de3455243324f /src
parent8f270ac7e3698e5c7b241ded290002d51fe415cc (diff)
Inset clipping rectangle using box types.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6002 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Group.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Fl_Group.cxx b/src/Fl_Group.cxx
index f2c2e1e21..1a90da6a2 100644
--- a/src/Fl_Group.cxx
+++ b/src/Fl_Group.cxx
@@ -537,7 +537,12 @@ void Fl_Group::resize(int X, int Y, int W, int H) {
void Fl_Group::draw_children() {
Fl_Widget*const* a = array();
- if (clip_children()) fl_push_clip(x(), y(), w(), h());
+ if (clip_children()) {
+ fl_push_clip(x() + Fl::box_dx(box()),
+ y() + Fl::box_dy(box()),
+ w() - Fl::box_dw(box()),
+ h() - Fl::box_dh(box()));
+ }
if (damage() & ~FL_DAMAGE_CHILD) { // redraw the entire thing:
for (int i=children_; i--;) {