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 4b87b20..1d4d814 100644 --- a/apps/recorder/bmp.c +++ b/apps/recorder/bmp.c @@ -232,7 +232,7 @@ int read_bmp_file(char* filename, #if LCD_DEPTH == 2 if(format == FORMAT_NATIVE) - memset(bitmap, 0, width * height / 4); + memset(bitmap, 0, totalsize); #endif #if LCD_DEPTH > 1 |