Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
moononournation committed Feb 22, 2024
1 parent be24771 commit 6a9c5a6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
19 changes: 13 additions & 6 deletions src/Arduino_GFX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,18 @@ Arduino_GFX::Arduino_GFX(int16_t w, int16_t h) : Arduino_G(w, h)
_height = HEIGHT;
_max_x = _width - 1; ///< x zero base bound
_max_y = _height - 1; ///< y zero base bound
_rotation = 0;
cursor_y = cursor_x = 0;
textsize_x = textsize_y = 1;
_min_text_x = 0;
_min_text_y = 0;
_max_text_x = _max_x;
_max_text_y = _max_y;
cursor_x = 0;
cursor_y = 0;
textcolor = 0xFFFF;
textbgcolor = 0xFFFF;
textsize_x = 1;
textsize_y = 1;
text_pixel_margin = 0;
textcolor = textbgcolor = 0xFFFF;
_rotation = 0;
wrap = true;
#if !defined(ATTINY_CORE)
gfxFont = NULL;
Expand Down Expand Up @@ -421,8 +428,8 @@ void Arduino_GFX::drawCircle(int16_t x, int16_t y,
*/
/**************************************************************************/
void Arduino_GFX::writeEllipseHelper(int32_t x, int32_t y,
int32_t rx, int32_t ry,
uint8_t cornername, uint16_t color)
int32_t rx, int32_t ry,
uint8_t cornername, uint16_t color)
{
if (rx < 0 || ry < 0 || ((rx == 0) && (ry == 0)))
{
Expand Down
1 change: 0 additions & 1 deletion src/canvas/Arduino_Canvas_3bit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
Arduino_Canvas_3bit::Arduino_Canvas_3bit(int16_t w, int16_t h, Arduino_G *output, int16_t output_x, int16_t output_y)
: Arduino_GFX(w, h), _output(output), _output_x(output_x), _output_y(output_y)
{
setRotation(0);
}

Arduino_Canvas_3bit::~Arduino_Canvas_3bit()
Expand Down
1 change: 0 additions & 1 deletion src/canvas/Arduino_Canvas_Mono.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ Arduino_Canvas_Mono::Arduino_Canvas_Mono(int16_t w, int16_t h, Arduino_G *output
: Arduino_GFX(w, h), _output(output), _output_x(output_x), _output_y(output_y), _verticalByte(verticalByte),
_canvas_width(w), _canvas_height(h)
{
setRotation(0);
}

Arduino_Canvas_Mono::~Arduino_Canvas_Mono()
Expand Down

0 comments on commit 6a9c5a6

Please sign in to comment.