diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-04-10 19:20:01 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-04-10 19:20:01 (GMT) |
| commit | a1badfd95db35addd2c0da068efd75d5f67214cc (patch) | |
| tree | c7c773d2c07a1e9a17c98e7cbcb1ffaeca9cdace /wasp/draw565.py | |
| parent | 3bcda8d5464e707490184bb92c102f4fe42a511e (diff) | |
wasp: draw565: Fix colors when burst filling a line.
Diffstat (limited to 'wasp/draw565.py')
| -rw-r--r-- | wasp/draw565.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wasp/draw565.py b/wasp/draw565.py index 8dd8de5..9cc4adc 100644 --- a/wasp/draw565.py +++ b/wasp/draw565.py @@ -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 |
