Skip to content
Snippets Groups Projects
Commit 0ab39f1c authored by Fabrice Weinberg's avatar Fabrice Weinberg
Browse files

Use drawVerticalLine in fillRect

parent a2bc9762
No related branches found
No related tags found
No related merge requests found
......@@ -130,8 +130,8 @@ void OLEDDisplay::drawRect(int16_t x, int16_t y, int16_t width, int16_t height)
}
void OLEDDisplay::fillRect(int16_t xMove, int16_t yMove, int16_t width, int16_t height) {
for (int16_t i = yMove; i < yMove + height; i++) {
drawHorizontalLine(xMove, i, width);
for (int16_t x = xMove; x < xMove + width; x++) {
drawVerticalLine(x, yMove, height);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment