diff options
Diffstat (limited to 'firmware/target/arm/lcd-c200_c200v2.c')
-rw-r--r-- | firmware/target/arm/lcd-c200_c200v2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/lcd-c200_c200v2.c b/firmware/target/arm/lcd-c200_c200v2.c index f82f8a809e..38877ccac9 100644 --- a/firmware/target/arm/lcd-c200_c200v2.c +++ b/firmware/target/arm/lcd-c200_c200v2.c | |||
@@ -395,7 +395,7 @@ void lcd_update_rect(int x, int y, int width, int height) | |||
395 | if ((width <= 0) || (height <= 0)) | 395 | if ((width <= 0) || (height <= 0)) |
396 | return; /* Nothing left to do. */ | 396 | return; /* Nothing left to do. */ |
397 | 397 | ||
398 | addr = &lcd_framebuffer[y][x]; | 398 | addr = FBADDR(x,y); |
399 | 399 | ||
400 | if (width <= 1) { | 400 | if (width <= 1) { |
401 | /* The X end address must be larger than the X start address, so we | 401 | /* The X end address must be larger than the X start address, so we |