cleanup code
This commit is contained in:
parent
a865d2df9b
commit
9352dfa0b5
@ -112,9 +112,7 @@ def display_loop(api: Api, cfg: Dict):
|
||||
elif data == "not-playing":
|
||||
pixels = not_playing_img.load()
|
||||
draw = ImageDraw.Draw(not_playing_img)
|
||||
draw.rectangle([(0, 100), (320, 240)], fill=(0, 0, 0)) # refresh bg
|
||||
draw.rectangle([(95, 25), (250, 98)], fill=(0, 0, 0)) # refresh bg
|
||||
draw.rectangle([(240, 0), (320, 150)], fill=(0, 0, 0)) # refresh bg
|
||||
draw.rectangle([(0, 0), (320, 240)], fill=(0, 0, 0)) # refresh bg
|
||||
|
||||
# Draw CPU usage
|
||||
buffer_cpu.append(get_cpu_util())
|
||||
|
Loading…
x
Reference in New Issue
Block a user