Skip to content

Commit

Permalink
Fix drawing of non-square round boxes.
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4333 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
michaelrsweet committed May 12, 2005
1 parent bce23d1 commit e4a4817
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/fl_plastic.cxx
Expand Up @@ -265,8 +265,11 @@ static void thin_up_box(int x, int y, int w, int h, Fl_Color c) {


static void up_round(int x, int y, int w, int h, Fl_Color c) {
shade_round(x + 1, y + 1, w - 2, h - 3, "RVQNOPQRSTUVWVQ", c);
frame_round(x, y, w, h - 1, "IJLM", c);
if (w != h) up_box(x, y, w, h, c);
else {
shade_round(x + 1, y + 1, w - 2, h - 3, "RVQNOPQRSTUVWVQ", c);
frame_round(x, y, w, h - 1, "IJLM", c);
}
}


Expand All @@ -282,8 +285,11 @@ static void down_box(int x, int y, int w, int h, Fl_Color c) {


static void down_round(int x, int y, int w, int h, Fl_Color c) {
shade_round(x + 2, y + 2, w - 4, h - 5, "STUVWWWVT", c);
frame_round(x, y, w, h - 1, "MLJI", c);
if (w != h) down_box(x, y, w, h, c);
else {
shade_round(x + 2, y + 2, w - 4, h - 5, "STUVWWWVT", c);
frame_round(x, y, w, h - 1, "MLJI", c);
}
}


Expand Down

0 comments on commit e4a4817

Please sign in to comment.