diff options
-rw-r--r-- | apps/recorder/bmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c index 598d26ba29..4b87b20883 100644 --- a/apps/recorder/bmp.c +++ b/apps/recorder/bmp.c | |||
@@ -173,7 +173,7 @@ int read_bmp_file(char* filename, | |||
173 | depth = readshort(&fh.BitCount); | 173 | depth = readshort(&fh.BitCount); |
174 | 174 | ||
175 | /* 4-byte boundary aligned */ | 175 | /* 4-byte boundary aligned */ |
176 | PaddedWidth = (width * depth / 8 + 3) & ~3; | 176 | PaddedWidth = ((width * depth + 31) / 8) & ~3; |
177 | 177 | ||
178 | #if LCD_DEPTH > 1 | 178 | #if LCD_DEPTH > 1 |
179 | if(format == FORMAT_ANY) { | 179 | if(format == FORMAT_ANY) { |