diff options
Diffstat (limited to 'firmware/drivers/lcd-recorder.c')
-rw-r--r-- | firmware/drivers/lcd-recorder.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/firmware/drivers/lcd-recorder.c b/firmware/drivers/lcd-recorder.c index c174430c83..99887b5dfc 100644 --- a/firmware/drivers/lcd-recorder.c +++ b/firmware/drivers/lcd-recorder.c | |||
@@ -476,13 +476,13 @@ void lcd_bitmap (unsigned char *src, int x, int y, int nx, int ny, | |||
476 | 476 | ||
477 | if (!shift && clear) /* shortcut for byte aligned match with clear */ | 477 | if (!shift && clear) /* shortcut for byte aligned match with clear */ |
478 | { | 478 | { |
479 | while (ny >= 8) /* all full rows */ | 479 | while (ny >= 8) /* all full rows */ |
480 | { | 480 | { |
481 | memcpy(dst, src, nx); | 481 | memcpy(dst, src, nx); |
482 | src += stride; | 482 | src += stride; |
483 | dst += LCD_WIDTH; | 483 | dst += LCD_WIDTH; |
484 | ny -= 8; | 484 | ny -= 8; |
485 | } | 485 | } |
486 | if (ny == 0) /* nothing left to do? */ | 486 | if (ny == 0) /* nothing left to do? */ |
487 | return; | 487 | return; |
488 | /* last partial row to do by default routine */ | 488 | /* last partial row to do by default routine */ |
@@ -506,8 +506,8 @@ void lcd_bitmap (unsigned char *src, int x, int y, int nx, int ny, | |||
506 | /* Loop for each column */ | 506 | /* Loop for each column */ |
507 | for (x = 0; x < nx; x++) | 507 | for (x = 0; x < nx; x++) |
508 | { | 508 | { |
509 | src_col = src++; | 509 | src_col = src++; |
510 | dst_col = dst++; | 510 | dst_col = dst++; |
511 | data = 0; | 511 | data = 0; |
512 | y = 0; | 512 | y = 0; |
513 | 513 | ||