From 4435c46c345b493a085ed12973f20abbac13c2b2 Mon Sep 17 00:00:00 2001 From: DiSlord Date: Wed, 22 Jul 2020 12:05:14 +0300 Subject: [PATCH] Fix typo --- plot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plot.c b/plot.c index 26fda7d..5e35713 100644 --- a/plot.c +++ b/plot.c @@ -1709,8 +1709,8 @@ cell_blit_char_bitmap(int x, int y, uint16_t w, uint16_t h, const uint8_t *char_ if (x <= -w) return w; uint8_t bits = 0; - int r; - for (; y < h+y; y++) { + int c = h+y, r; + for (; y < c; y++) { for (r = 0; r < w; r++) { if ((r&7)==0) bits = *char_buf++; if (y >= 0 && x+r >= 0 && y < CELLHEIGHT && x+r < CELLWIDTH && (0x80 & bits))