diff options
Diffstat (limited to 'src/display_draw.c')
-rw-r--r-- | src/display_draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display_draw.c b/src/display_draw.c index 27ed796..a315bf7 100644 --- a/src/display_draw.c +++ b/src/display_draw.c @@ -92,12 +92,12 @@ void dsp_rect(int x, int y, int w, int h, uint16_t color) { dsp_set_addr(x, y, x + w - 1, y + h - 1); int countdown = w * h; + LOCK; do { - LOCK; dsp_write_data(color >> 8); dsp_write_data(color & 0xFF); - UNLOCK; } while (countdown--); + UNLOCK; } void dsp_line(int x, int y, int i, int j, uint16_t color) |