Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
moononournation committed Feb 22, 2024
1 parent 6a9c5a6 commit e60b427
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Arduino_GFX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2509,20 +2509,19 @@ void Arduino_GFX::setRotation(uint8_t r)
case 1:
_width = HEIGHT;
_height = WIDTH;
_max_x = _width - 1; ///< x zero base bound
_max_y = _height - 1; ///< y zero base bound
break;
case 6:
case 4:
case 2:
default: // case 0:
_width = WIDTH;
_height = HEIGHT;
_max_x = _width - 1; ///< x zero base bound
_max_y = _height - 1; ///< y zero base bound
break;
}

_max_x = _width - 1; ///< x zero base bound
_max_y = _height - 1; ///< y zero base bound

// reset textBound after setRotation()
setTextBound(0, 0, _width, _height);
}
Expand Down

0 comments on commit e60b427

Please sign in to comment.