#11925 Remove the gap between button frame and button background (by Daniel Ramoeller)

This commit is contained in:
Stephan Witt 2021-02-14 19:04:33 +01:00
parent c4c62f7185
commit 3d616bfc79

View File

@ -424,8 +424,8 @@ void GuiPainter::buttonText(int x, int baseline, docstring const & s,
int const d = offset / 2;
fillRectangle(x + d + 1, baseline - ascent + 1, width - offset - 1,
ascent + descent - 1, back);
fillRectangle(x + d, baseline - ascent, width - offset,
ascent + descent, back);
rectangle(x + d, baseline - ascent, width - offset, ascent + descent, frame);
text(x + offset, baseline, s, font);
}