Skip to content

Commit 7304da2

Browse files
authored
Move SetGeometry to public space
1 parent 1143247 commit 7304da2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/OLEDDisplay.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,9 @@ class OLEDDisplay : public Stream {
358358
uint8_t *buffer_back;
359359
#endif
360360

361+
// Set the correct height, width and buffer for the geometry
362+
void setGeometry(OLEDDISPLAY_GEOMETRY g, uint16_t width = 0, uint16_t height = 0);
363+
361364
protected:
362365

363366
OLEDDISPLAY_GEOMETRY geometry;
@@ -366,9 +369,6 @@ class OLEDDisplay : public Stream {
366369
uint16_t displayHeight;
367370
uint16_t displayBufferSize;
368371

369-
// Set the correct height, width and buffer for the geometry
370-
void setGeometry(OLEDDISPLAY_GEOMETRY g, uint16_t width = 0, uint16_t height = 0);
371-
372372
OLEDDISPLAY_TEXT_ALIGNMENT textAlignment;
373373
OLEDDISPLAY_COLOR color;
374374

0 commit comments

Comments
 (0)