Skip to content

Commit 4839047

Browse files
author
Jonathan Dahan
committed
Fix fill
1 parent 97d197e commit 4839047

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_framebuf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ def fill(framebuf, color):
7272
fill = (bits << 6) | (bits << 4) | (bits << 2) | (bits << 0)
7373
else:
7474
fill = 0x00
75-
for i in range(len(framebuf.buf)): # pylint: disable=consider-using-enumerate
76-
framebuf.buf[i] = fill
75+
76+
framebuf.buf = [ fill for i in range(len(framebuf.buf)) ]
7777

7878
@staticmethod
7979
def rect(framebuf, x, y, width, height, color):

0 commit comments

Comments
 (0)