diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-05-16 02:16:17 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-05-16 02:16:17 +0000 |
| commit | af1ec00483000fe92ad902a599779863f42b1e17 (patch) | |
| tree | ecd30493cfa8b66d18547ed144ca410478b63ee9 /src/fl_plastic.cxx | |
| parent | 83c0e840baff12c31d46f818bcb645511a0767a0 (diff) | |
More color fixes for Xft (fl_color_ wasn't always set)
Fix plastic boxtype (1 pixel too high)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2234 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_plastic.cxx')
| -rw-r--r-- | src/fl_plastic.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fl_plastic.cxx b/src/fl_plastic.cxx index b15a304c0..b29e3d270 100644 --- a/src/fl_plastic.cxx +++ b/src/fl_plastic.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_plastic.cxx,v 1.1.2.12 2002/05/10 00:18:37 easysw Exp $" +// "$Id: fl_plastic.cxx,v 1.1.2.13 2002/05/16 02:16:17 easysw Exp $" // // "Plastic" drawing routines for the Fast Light Tool Kit (FLTK). // @@ -136,24 +136,24 @@ static void shade_rect(int x, int y, int w, int h, const char *c, Fl_Color bc) static void up_frame(int x, int y, int w, int h, Fl_Color c) { - shade_frame(x, y, w, h, "MNFKKLNO", c); + shade_frame(x, y, w, h - 1, "MNFKKLNO", c); } static void up_box(int x, int y, int w, int h, Fl_Color c) { - shade_rect(x + 2, y + 2, w - 4, h - 4, "TXSPPQQRSSTTUVS", c); + shade_rect(x + 2, y + 2, w - 4, h - 5, "TXSPPQQRSSTTUVS", c); up_frame(x, y, w, h, c); } static void down_frame(int x, int y, int w, int h, Fl_Color c) { - shade_frame(x, y, w, h, "LLRRTTLL", c); + shade_frame(x, y, w, h - 1, "LLRRTTLL", c); } static void down_box(int x, int y, int w, int h, Fl_Color c) { - shade_rect(x + 2, y + 2, w - 4, h - 4, "STUVWWWVT", c); + shade_rect(x + 2, y + 2, w - 4, h - 5, "STUVWWWVT", c); down_frame(x, y, w, h, c); } @@ -173,5 +173,5 @@ Fl_Boxtype fl_define_FL_PLASTIC_UP_BOX() { // -// End of "$Id: fl_plastic.cxx,v 1.1.2.12 2002/05/10 00:18:37 easysw Exp $". +// End of "$Id: fl_plastic.cxx,v 1.1.2.13 2002/05/16 02:16:17 easysw Exp $". // |
