Skip to content

Commit

Permalink
Reformat a line of code that apparently violated some coding standard.
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesp1729 committed Jul 9, 2024
1 parent 4e46790 commit 8176400
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Adafruit_GFX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1695,11 +1695,8 @@ void Adafruit_GFX_Button::drawButton(bool inverted) {
// System font is drawn from the upper left, but custom fonts are
// drawn from the lower left. Adjust by the Y returned from getTextBounds().
_gfx->getTextBounds(_label, _x1, _y1, &x, &y, &w, &h);
_gfx->setCursor
(
_x1 + (_w / 2) - (w / 2),
_y1 + (_h / 2) - (h / 2) + (_y1 - y)
);
_gfx->setCursor(_x1 + (_w / 2) - (w / 2),
_y1 + (_h / 2) - (h / 2) + (_y1 - y));
_gfx->print(_label);
}

Expand Down

0 comments on commit 8176400

Please sign in to comment.