Skip to content

Commit 3be187b

Browse files
authored
Fix bug spotted in self-review
1 parent 8393bcd commit 3be187b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_display_shapes/polygon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __init__(
7575

7676
self._palette = displayio.Palette(colors + 1)
7777
self._palette.make_transparent(0)
78-
self._bitmap = displayio.Bitmap(width, height, 2)
78+
self._bitmap = displayio.Bitmap(width, height, colors + 1)
7979

8080
if outline is not None:
8181
# print("outline")

0 commit comments

Comments
 (0)