diff options
Diffstat (limited to 'apps/recorder/bmp.c')
-rw-r--r-- | apps/recorder/bmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c index 1d5d378708..8fcd8ca92e 100644 --- a/apps/recorder/bmp.c +++ b/apps/recorder/bmp.c | |||
@@ -617,7 +617,7 @@ int read_bmp_fd(int fd, | |||
617 | if (depth <= 8) { | 617 | if (depth <= 8) { |
618 | numcolors = letoh32(bmph.clr_used); | 618 | numcolors = letoh32(bmph.clr_used); |
619 | if (numcolors == 0) | 619 | if (numcolors == 0) |
620 | numcolors = 1 << depth; | 620 | numcolors = BIT_N(depth); |
621 | } else | 621 | } else |
622 | numcolors = (compression == 3) ? 3 : 0; | 622 | numcolors = (compression == 3) ? 3 : 0; |
623 | 623 | ||
@@ -795,7 +795,7 @@ int read_bmp_fd(int fd, | |||
795 | #ifndef PLUGIN | 795 | #ifndef PLUGIN |
796 | { | 796 | { |
797 | unsigned char *p = bitmap + bm->width * (row >> 3); | 797 | unsigned char *p = bitmap + bm->width * (row >> 3); |
798 | unsigned char mask = 1 << (row & 7); | 798 | unsigned char mask = BIT_N(row & 7); |
799 | int col; | 799 | int col; |
800 | for (col = 0; col < bm->width; col++, p++) | 800 | for (col = 0; col < bm->width; col++, p++) |
801 | #if !defined(HAVE_LCD_COLOR) && \ | 801 | #if !defined(HAVE_LCD_COLOR) && \ |