Skip to content

Commit 4724f5c

Browse files
authored
Merge pull request #14 from kmatch98/patch-2
Reinitialize the result_buffer - Fix bug where "streaks" were shown on output Bitmaps
2 parents 7eab332 + 3e68289 commit 4724f5c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

adafruit_bitmapsaver.py

+2
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ def _write_pixels(output_file, pixel_source, palette):
9898
row_buffer[buffer_index] = b & 0xFF
9999
buffer_index += 1
100100
output_file.write(row_buffer)
101+
for i in range(width * 2):
102+
result_buffer[i] = 0
101103
gc.collect()
102104

103105

0 commit comments

Comments
 (0)