summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2022-11-25 12:53:46 +0100
committerMatthias Melcher <github@matthiasm.com>2022-11-25 12:53:54 +0100
commitffc2caea076e526b6ef1b13b82c2e2d471b03fa1 (patch)
tree4bd4e23ea491f9421a4702262ff3e784fed20948 /src
parent3dac8e379e83ed044715fab8027f58cddc8a795d (diff)
Avoid thin gray line in round box in hires
Diffstat (limited to 'src')
-rw-r--r--src/fl_round_box.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fl_round_box.cxx b/src/fl_round_box.cxx
index 8cbe79fa6..c0fdb378f 100644
--- a/src/fl_round_box.cxx
+++ b/src/fl_round_box.cxx
@@ -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);