From 4b6535cd5b8684fb858515b10581cec36216bb81 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 16 Dec 2007 23:34:06 +0000 Subject: Inset clipping rectangle using box types. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6002 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Group.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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--;) { -- cgit v1.2.3