Author: mike
Date: 2007-12-16 15:34:06 -0800 (Sun, 16 Dec 2007)
New Revision: 6002
Log:
Inset clipping rectangle using box types.
Modified:
branches/branch-1.1/src/Fl_Group.cxx
Modified: branches/branch-1.1/src/Fl_Group.cxx
===================================================================
--- branches/branch-1.1/src/Fl_Group.cxx 2007-12-16 20:44:28 UTC (rev
6001)
+++ branches/branch-1.1/src/Fl_Group.cxx 2007-12-16 23:34:06 UTC (rev
6002)
@@ -537,7 +537,12 @@
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--;) {
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit