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
This commit is contained in:
Matthias Melcher 2005-05-23 10:18:34 +00:00
parent dfc390e735
commit d47f353023

View File

@ -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) {