Avoid thin gray line in round box in hires

This commit is contained in:
Matthias Melcher 2022-11-25 12:53:46 +01:00
parent 3dac8e379e
commit ffc2caea07

View File

@ -55,9 +55,9 @@ static void draw(int which, int x,int y,int w,int h, int inset, Fl_Color color)
}
if (which == FILL) {
if (w < h)
fl_rectf(x, y+d/2, w, h-(d&-2));
fl_rectf(x, y+d/2, w, h-(d&-2)+1);
else if (w > h)
fl_rectf(x+d/2, y, w-(d&-2), h);
fl_rectf(x+d/2, y, w-(d&-2)+1, h);
} else {
if (w < h) {
if (which != UPPER_LEFT) fl_yxline(x+w-1, y+d/2-1, y+h-d/2+1);