echoplayer: fix incorrect loop bounds in lcd_update_rect()
rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
| Newsgroups | gmane.comp.systems.archos.rockbox.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 55f2e2d5d59de4200c1909d97419cbbc8f35c24b Author: Aidan MacDonald <[email protected]> Date: Mon Jan 12 15:34:03 2026 +0000 echoplayer: fix incorrect loop bounds in lcd_update_rect() Change-Id: I96b3d235db4a988374967131caba0344c655e5d3 diff --git a/firmware/target/arm/stm32/echoplayer/lcd-echoplayer.c b/firmware/target/arm/stm32/echoplayer/lcd-echoplayer.c index a6df7939a5..ea2febeff6 100644 --- a/firmware/target/arm/stm32/echoplayer/lcd-echoplayer.c +++ b/firmware/target/arm/stm32/echoplayer/lcd-echoplayer.c @@ -173,8 +173,8 @@ void lcd_update_rect(int x, int y, int width, int height) if (height > LCD_HEIGHT - y) height = LCD_HEIGHT - y; - for (int dy = y; dy < height; ++dy) - commit_dcache_range(FBADDR(x, dy), FB_DATA_SZ * width); + for (int dy = 0; dy < height; ++dy) + commit_dcache_range(FBADDR(x, y+dy), FB_DATA_SZ * width); } void spi5_irq_handler(void) -- rockbox-cvs mailing list [email protected] https://lists.haxx.se/mailman/listinfo/rockbox-cvs