check blinds frames for zero height

This commit is contained in:
Frank DeMarco 2019-08-28 21:47:51 -04:00
parent 5c5f03805c
commit 2645cdeff6
1 changed files with 2 additions and 0 deletions

View File

@ -241,6 +241,8 @@ def get_blinds_frames(surface, step=.05, count=4, fill=(0, 0, 0, 0)):
for ii in range(count):
rects.append(Rect(0, h * ii, surface.get_width(), 0))
bar_h = int(round(h * step))
if bar_h < 1:
bar_h = 1
while rects[0].h < h:
frame = surface.copy()
for rect in rects: