Skip to content

Commit

Permalink
Merge pull request #12 from meshtastic/caveman99-smallscreen
Browse files Browse the repository at this point in the history
Move SetGeometry to public space
  • Loading branch information
caveman99 authored Mar 18, 2024
2 parents 1143247 + 7304da2 commit 2d30270
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/OLEDDisplay.h
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ class OLEDDisplay : public Stream {
uint8_t *buffer_back;
#endif

// Set the correct height, width and buffer for the geometry
void setGeometry(OLEDDISPLAY_GEOMETRY g, uint16_t width = 0, uint16_t height = 0);

protected:

OLEDDISPLAY_GEOMETRY geometry;
Expand All @@ -366,9 +369,6 @@ class OLEDDisplay : public Stream {
uint16_t displayHeight;
uint16_t displayBufferSize;

// Set the correct height, width and buffer for the geometry
void setGeometry(OLEDDISPLAY_GEOMETRY g, uint16_t width = 0, uint16_t height = 0);

OLEDDISPLAY_TEXT_ALIGNMENT textAlignment;
OLEDDISPLAY_COLOR color;

Expand Down

0 comments on commit 2d30270

Please # to comment.