check blinds frames for zero height
This commit is contained in:
parent
5c5f03805c
commit
2645cdeff6
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue