1
0
Fork 0

wasp: draw565: Fix colors when burst filling a line.

This commit is contained in:
Daniel Thompson 2020-04-10 20:20:01 +01:00
parent 3bcda8d546
commit a1badfd95d

View file

@ -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