diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c index 819d2e6976..26be4e48cf 100644 --- a/apps/recorder/bmp.c +++ b/apps/recorder/bmp.c @@ -494,9 +494,6 @@ int read_bmp_fd(int fd, defined(PLUGIN) bool dither = false; #endif -#if (LCD_DEPTH > 1 || (defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1)) && \ - defined(HAVE_BMP_SCALING) || defined(PLUGIN) - unsigned int resize = IMG_NORESIZE; #ifdef HAVE_REMOTE_LCD bool remote = false; @@ -508,6 +505,10 @@ int read_bmp_fd(int fd, } #endif /* HAVE_REMOTE_LCD */ +#if (LCD_DEPTH > 1 || (defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1)) && \ + defined(HAVE_BMP_SCALING) || defined(PLUGIN) + unsigned int resize = IMG_NORESIZE; + if (format & FORMAT_RESIZE) { resize = IMG_RESIZE; }