@@ -715,8 +715,8 @@ void Adafruit_GFX::drawRotatedRectangle(int16_t cenX, int16_t cenY,
715715 int16_t width, int16_t height,
716716 int16_t angleDeg, uint16_t color) {
717717
718- int16_t halfW = width / 2.0 ;
719- int16_t halfH = height / 2.0 ;
718+ int16_t halfW = width / 2 ;
719+ int16_t halfH = height / 2 ;
720720
721721 int16_t x0 = cenX - halfW; // top-left
722722 int16_t y0 = cenY - halfH; // top-left
@@ -753,8 +753,8 @@ void Adafruit_GFX::fillRotatedRectangle(int16_t cenX, int16_t cenY,
753753 int16_t width, int16_t height,
754754 int16_t angleDeg, uint16_t color) {
755755
756- int16_t halfW = width / 2.0 ;
757- int16_t halfH = height / 2.0 ;
756+ int16_t halfW = width / 2 ;
757+ int16_t halfH = height / 2 ;
758758
759759 int16_t x0 = cenX - halfW; // top-left
760760 int16_t y0 = cenY - halfH; // top-left
@@ -781,8 +781,8 @@ void Adafruit_GFX::fillRotatedRectangle(int16_t cenX, int16_t cenY,
781781 and updated upon return
782782 @param y0 y coordinate of point to rotate. This is passed by reference
783783 and updated upon return
784- @param orgX width of rectangle
785- @param orgY height of rectangle
784+ @param orgX x coordinate of point to be rotated around
785+ @param orgY y coordinate of point to be rotated around
786786 @param angleDeg angle of rotation of rectangle
787787*/
788788/* *************************************************************************/
0 commit comments