Skip to content

Commit 3b8ee76

Browse files
authored
Merge pull request #12 from lesamouraipourpre/max-size
Remove max_size parameter
2 parents c458b65 + 647292f commit 3b8ee76

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Usage Example
8787
display = adafruit_displayio_ssd1305.SSD1305(display_bus, width=WIDTH, height=HEIGHT)
8888
8989
# Make the display context
90-
splash = displayio.Group(max_size=10)
90+
splash = displayio.Group()
9191
display.show(splash)
9292
9393
color_bitmap = displayio.Bitmap(display.width, display.height, 1)
@@ -112,7 +112,7 @@ Usage Example
112112
text = "Hello World!"
113113
text_area = label.Label(terminalio.FONT, text=text, color=0xFFFFFF)
114114
text_width = text_area.bounding_box[2] * FONTSCALE
115-
text_group = displayio.Group(max_size=10, scale=FONTSCALE, x=display.width // 2 - text_width // 2,
115+
text_group = displayio.Group(scale=FONTSCALE, x=display.width // 2 - text_width // 2,
116116
y=display.height // 2)
117117
text_group.append(text_area) # Subgroup for text scaling
118118
splash.append(text_group)

examples/displayio_ssd1305_simpletest.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
display = adafruit_displayio_ssd1305.SSD1305(display_bus, width=WIDTH, height=HEIGHT)
3838

3939
# Make the display context
40-
splash = displayio.Group(max_size=10)
40+
splash = displayio.Group()
4141
display.show(splash)
4242

4343
color_bitmap = displayio.Bitmap(display.width, display.height, 1)
@@ -63,7 +63,6 @@
6363
text_area = label.Label(terminalio.FONT, text=text, color=0xFFFFFF)
6464
text_width = text_area.bounding_box[2] * FONTSCALE
6565
text_group = displayio.Group(
66-
max_size=10,
6766
scale=FONTSCALE,
6867
x=display.width // 2 - text_width // 2,
6968
y=display.height // 2,

0 commit comments

Comments
 (0)