Don't draw plastic boxes that are 0x0 pixels in size or smaller
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4644 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
0a41e770c3
commit
ba4b17c545
@ -301,6 +301,7 @@ static void up_box(int x, int y, int w, int h, Fl_Color c) {
|
||||
|
||||
|
||||
static void narrow_thin_box(int x, int y, int w, int h, Fl_Color c) {
|
||||
if (h<=0 || w<=0) return;
|
||||
uchar *g = fl_gray_ramp();
|
||||
fl_color(shade_color(g['R'], c));
|
||||
fl_rectf(x+1, y+1, w-2, h-2);
|
||||
|
Loading…
Reference in New Issue
Block a user