diff options
| -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) { |
