diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2005-05-23 10:18:34 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2005-05-23 10:18:34 +0000 |
| commit | d47f353023a16e3fbb906ce5a2e9c7e2e0bd8d76 (patch) | |
| tree | 668bbf609b94f3ff77455426c144ef6eebee6115 | |
| parent | dfc390e735ec4661874348f0a1d239004954e18f (diff) | |
There are still some artefacts, probably a confusion between round and rounded box. The current fix will avaiod the artefact, but still not draw entirely correct.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4367 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/fl_plastic.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fl_plastic.cxx b/src/fl_plastic.cxx index 7b395f8a8..e240c68fc 100644 --- a/src/fl_plastic.cxx +++ b/src/fl_plastic.cxx @@ -197,7 +197,8 @@ static void shade_round(int x, int y, int w, int h, const char *c, Fl_Color bc) int clen = strlen(c) - 1; int chalf = clen / 2; int cstep = 1; - static const int kvals[] = { 5, 3, 2, 1 }; + static const int kvals_table[] = { 21, 16, 11, 8, 5, 3, 2, 1 }; + const int *kvals = kvals_table + 8 - chalf; if (clen >= h) cstep = 2; for (i = 0, j = 0; j < chalf; i ++, j += cstep) { |
