diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-02-06 01:42:40 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-02-06 01:42:40 +0000 |
| commit | de9bea20b5afe66b2df2965cd5e48aae0a757353 (patch) | |
| tree | b5d748961bb70e31bccded3eccabbb1f15d88679 /src/fl_shadow_box.cxx | |
| parent | b32fefd1c58eba842cec3c095b42542dece3654f (diff) | |
FL_SHADOW_BOX/FRAME drew outside of the bounding box (STR #694)
src/fl_boxtype.cxx:
- Adjust box dw/dh for shadow box/frame types.
src/fl_shadow_box.cxx:
- Adjust shadow box to draw inside the bounding box.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4033 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_shadow_box.cxx')
| -rw-r--r-- | src/fl_shadow_box.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fl_shadow_box.cxx b/src/fl_shadow_box.cxx index 7589b40d0..be0afe559 100644 --- a/src/fl_shadow_box.cxx +++ b/src/fl_shadow_box.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_shadow_box.cxx,v 1.4.2.3.2.4 2004/04/11 04:39:00 easysw Exp $" +// "$Id$" // // Shadow box drawing routines for the Fast Light Tool Kit (FLTK). // @@ -30,15 +30,15 @@ static void fl_shadow_frame(int x, int y, int w, int h, Fl_Color c) { fl_color(FL_DARK3); - fl_rectf(x+BW, y+h, w, BW); - fl_rectf(x+w, y+BW, BW, h); + fl_rectf(x+BW, y+h-BW, w, BW); + fl_rectf(x+w-BW, y+BW, BW, h - BW); fl_color(c); - fl_rect(x,y,w,h); + fl_rect(x,y,w-BW,h-BW); } static void fl_shadow_box(int x, int y, int w, int h, Fl_Color c) { fl_color(c); - fl_rectf(x+1,y+1,w-2,h-2); + fl_rectf(x+1,y+1,w-2-BW,h-2-BW); fl_shadow_frame(x,y,w,h,FL_GRAY0); } @@ -50,5 +50,5 @@ Fl_Boxtype fl_define_FL_SHADOW_BOX() { } // -// End of "$Id: fl_shadow_box.cxx,v 1.4.2.3.2.4 2004/04/11 04:39:00 easysw Exp $". +// End of "$Id$". // |
