From ce129e16208dd7271549db64fe778a0ae3266f5e Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 14 Dec 2001 03:45:37 +0000 Subject: Get rid of CR's in file - need to make sure we don't insert CR's when editing text on PCs or Macs... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1843 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_plastic.cxx | 66 +++++++++++++++++++++++++++--------------------------- 1 file changed, 33 insertions(+), 33 deletions(-) (limited to 'src') diff --git a/src/fl_plastic.cxx b/src/fl_plastic.cxx index 63a5a0626..c4d8605bf 100644 --- a/src/fl_plastic.cxx +++ b/src/fl_plastic.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_plastic.cxx,v 1.1.2.5 2001/12/13 21:48:58 matthiaswm Exp $" +// "$Id: fl_plastic.cxx,v 1.1.2.6 2001/12/14 03:45:37 easysw Exp $" // // "Plastic" drawing routines for the Fast Light Tool Kit (FLTK). // @@ -120,22 +120,22 @@ static void up_frame(int x, int y, int w, int h, Fl_Color c) { static void up_box(int x, int y, int w, int h, Fl_Color c) { if (w > 30 && h > 30) - { - uchar *g = fl_gray_ramp(); - if ( h<(w*2) ) - { - shade_rect(x + 2, y + 2, w - 4, 9, "VTR", c); - fl_color(shade_color(g['P'], c)); - fl_rectf(x + 2, y + 11, w - 4, h - 25); - shade_rect(x + 2, y + h - 14, w - 4, 12, "RTVXX", c); - } - else - { - shade_rect(x + 2, y + 2, 9, h-4, "VTR", c); - fl_color(shade_color(g['P'], c)); - fl_rectf(x + 11, y + 2, w - 25, h - 4); - shade_rect(x + w - 14, y + 2, 12, h-4, "RTVXX", c); - } + { + uchar *g = fl_gray_ramp(); + if ( h<(w*2) ) + { + shade_rect(x + 2, y + 2, w - 4, 9, "VTR", c); + fl_color(shade_color(g['P'], c)); + fl_rectf(x + 2, y + 11, w - 4, h - 25); + shade_rect(x + 2, y + h - 14, w - 4, 12, "RTVXX", c); + } + else + { + shade_rect(x + 2, y + 2, 9, h-4, "VTR", c); + fl_color(shade_color(g['P'], c)); + fl_rectf(x + 11, y + 2, w - 25, h - 4); + shade_rect(x + w - 14, y + 2, 12, h-4, "RTVXX", c); + } } else shade_rect(x + 2, y + 2, w - 4, h - 4, "VTRPPRTVXX", c); @@ -152,21 +152,21 @@ static void down_frame(int x, int y, int w, int h, Fl_Color c) { static void down_box(int x, int y, int w, int h, Fl_Color c) { if (w > 30 && h > 30) { - uchar *g = fl_gray_ramp(); - if ( w>=h ) - { - shade_rect(x + 2, y + 2, w - 4, 11, "STUV", c); - fl_color(shade_color(g['W'], c)); - fl_rectf(x + 2, y + 13, w - 4, h - 21); - shade_rect(x + 2, y + h - 8, w - 4, 6, "VT", c); - } - else - { - shade_rect(x + 2, y + 2, 11, h-4, "STUV", c); - fl_color(shade_color(g['W'], c)); - fl_rectf(x + 13, y + 2, w - 21, h - 4); - shade_rect(x + w - 8, y + 2, 6, h-4, "VT", c); - } + uchar *g = fl_gray_ramp(); + if ( w>=h ) + { + shade_rect(x + 2, y + 2, w - 4, 11, "STUV", c); + fl_color(shade_color(g['W'], c)); + fl_rectf(x + 2, y + 13, w - 4, h - 21); + shade_rect(x + 2, y + h - 8, w - 4, 6, "VT", c); + } + else + { + shade_rect(x + 2, y + 2, 11, h-4, "STUV", c); + fl_color(shade_color(g['W'], c)); + fl_rectf(x + 13, y + 2, w - 21, h - 4); + shade_rect(x + w - 8, y + 2, 6, h-4, "VT", c); + } } else shade_rect(x + 2, y + 2, w - 4, h - 4, "STUVWWWWVT", c); @@ -189,5 +189,5 @@ Fl_Boxtype define_FL_PLASTIC_UP_BOX() { // -// End of "$Id: fl_plastic.cxx,v 1.1.2.5 2001/12/13 21:48:58 matthiaswm Exp $". +// End of "$Id: fl_plastic.cxx,v 1.1.2.6 2001/12/14 03:45:37 easysw Exp $". // -- cgit v1.2.3