Fix fill
This commit is contained in:
parent
d8b8238509
commit
d84d55093b
1 changed files with 2 additions and 1 deletions
|
|
@ -68,7 +68,8 @@ class GS2HMSBFormat:
|
|||
def fill(framebuf, color):
|
||||
"""completely fill/clear the buffer with a color"""
|
||||
if color:
|
||||
fill = color & 0b11
|
||||
bits = (color & 0b11)
|
||||
fill = (bits << 6) | (bits << 4) | (bits << 2) | (bits << 0)
|
||||
else:
|
||||
fill = 0x00
|
||||
for i in range(len(framebuf.buf)): # pylint: disable=consider-using-enumerate
|
||||
|
|
|
|||
Loading…
Reference in a new issue