Skip to content

Commit

Permalink
Fix drawRect function. Fixes issue ##36
Browse files Browse the repository at this point in the history
  • Loading branch information
squix78 committed Jan 31, 2019
1 parent d939023 commit cacbc7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MiniGrafx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ void MiniGrafx::drawCircle(int16_t x0, int16_t y0, uint16_t radius) {
void MiniGrafx::drawRect(int16_t x, int16_t y, int16_t width, int16_t height) {
drawHorizontalLine(x, y, width);
drawVerticalLine(x, y, height);
drawVerticalLine(x + width + 1, y, height);
drawHorizontalLine(x, y + height - 1, width);
drawVerticalLine(x + width, y, height);
drawHorizontalLine(x, y + height, width);
}

void MiniGrafx::fillRect(int16_t xMove, int16_t yMove, int16_t width, int16_t height) {
Expand Down

0 comments on commit cacbc7b

Please sign in to comment.