summaryrefslogtreecommitdiff
path: root/src/fl_plastic.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2001-12-06 18:12:35 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2001-12-06 18:12:35 +0000
commit9c758380115f01878036f2985f7f02146e3d860f (patch)
tree37de01750a1ddcbdcec5b08a4fa7092276b870ca /src/fl_plastic.cxx
parentab896c6d5faa206ca23df371fc1c17b8a1666007 (diff)
Use FL_NO_BOX for check button and round button.
Clip Fl_Tiled_Image to the bounding box. Draw Fl_Progress using the box. Draw plastic box types right for narrow (but horizontal buttons) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1814 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_plastic.cxx')
-rw-r--r--src/fl_plastic.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/fl_plastic.cxx b/src/fl_plastic.cxx
index ed9eebb24..8d1b9cf84 100644
--- a/src/fl_plastic.cxx
+++ b/src/fl_plastic.cxx
@@ -1,9 +1,11 @@
//
-// "$Id: fl_plastic.cxx,v 1.1.2.2 2001/12/01 13:59:50 easysw Exp $"
+// "$Id: fl_plastic.cxx,v 1.1.2.3 2001/12/06 18:12:35 easysw Exp $"
//
// "Plastic" drawing routines for the Fast Light Tool Kit (FLTK).
//
-// These box types provide a
+// These box types provide a cross between Aqua and KDE buttons; kindof
+// like translucent plastic buttons...
+//
// Copyright 2001 by Michael Sweet.
//
// This library is free software; you can redistribute it and/or
@@ -64,7 +66,7 @@ static void shade_rect(int x, int y, int w, int h, const char *c, Fl_Color bc)
int clen = strlen(c);
- if (w >= h)
+ if (h < (w * 2))
{
h ++;
cmod = clen % h;
@@ -163,5 +165,5 @@ Fl_Boxtype define_FL_PLASTIC_UP_BOX() {
//
-// End of "$Id: fl_plastic.cxx,v 1.1.2.2 2001/12/01 13:59:50 easysw Exp $".
+// End of "$Id: fl_plastic.cxx,v 1.1.2.3 2001/12/06 18:12:35 easysw Exp $".
//