From d47f353023a16e3fbb906ce5a2e9c7e2e0bd8d76 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 23 May 2005 10:18:34 +0000 Subject: 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 --- src/fl_plastic.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3