wasp: draw565: Fix colors when burst filling a line.
This commit is contained in:
parent
3bcda8d546
commit
a1badfd95d
1 changed files with 1 additions and 0 deletions
|
@ -47,6 +47,7 @@ def _expand_rgb(eightbit: int) -> int:
|
|||
@micropython.viper
|
||||
def _fill(mv, color: int, count: int, offset: int):
|
||||
p = ptr16(mv)
|
||||
color = (color >> 8) + ((color & 0xff) << 8)
|
||||
|
||||
for x in range(offset, offset+count):
|
||||
p[x] = color
|
||||
|
|
Loading…
Add table
Reference in a new issue