mirror of
https://github.com/fltk/fltk.git
synced 2026-05-30 13:05:35 +08:00
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:
+2
-1
@@ -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 clen = strlen(c) - 1;
|
||||||
int chalf = clen / 2;
|
int chalf = clen / 2;
|
||||||
int cstep = 1;
|
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;
|
if (clen >= h) cstep = 2;
|
||||||
|
|
||||||
for (i = 0, j = 0; j < chalf; i ++, j += cstep) {
|
for (i = 0, j = 0; j < chalf; i ++, j += cstep) {
|
||||||
|
|||||||
Reference in New Issue
Block a user