From af1ec00483000fe92ad902a599779863f42b1e17 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 16 May 2002 02:16:17 +0000 Subject: 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 --- src/fl_plastic.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/fl_plastic.cxx') 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 $". // -- cgit v1.2.3