summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/buffering.c4
-rw-r--r--apps/recorder/resize.c2
-rw-r--r--apps/recorder/resize.h2
3 files changed, 5 insertions, 3 deletions
diff --git a/apps/buffering.c b/apps/buffering.c
index 4f2ec32..afc444a 100644
--- a/apps/buffering.c
+++ b/apps/buffering.c
@@ -849,7 +849,9 @@ static int load_image(int fd, const char *path)
struct bitmap *bmp = (struct bitmap *)&buffer[buf_widx];
/* FIXME: alignment may be needed for the data buffer. */
bmp->data = &buffer[buf_widx + sizeof(struct bitmap)];
-
+#ifndef HAVE_JPEG
+ (void) path;
+#endif
#if (LCD_DEPTH > 1) || defined(HAVE_REMOTE_LCD) && (LCD_REMOTE_DEPTH > 1)
bmp->maskdata = NULL;
#endif
diff --git a/apps/recorder/resize.c b/apps/recorder/resize.c
index 3a0ad8d..bae72c8 100644
--- a/apps/recorder/resize.c
+++ b/apps/recorder/resize.c
@@ -858,7 +858,7 @@ int resize_on_load(struct bitmap *bm, bool dither, struct dim *src,
#endif
if (format)
#endif
-#if defined(HAVE_LCD_COLOR) && (defined(HAVE_JPEG) || defined(PLUGIN))
+#ifdef HAVE_LCD_COLOR
ctx.output_row = format->output_row_32[format_index];
#else
ctx.output_row = format->output_row_32;
diff --git a/apps/recorder/resize.h b/apps/recorder/resize.h
index ef32066..d71a3e7 100644
--- a/apps/recorder/resize.h
+++ b/apps/recorder/resize.h
@@ -143,7 +143,7 @@ struct scaler_context {
bool (*h_scaler)(void*,struct scaler_context*, bool);
};
-#if defined(HAVE_LCD_COLOR) && (defined(HAVE_JPEG) || defined(PLUGIN))
+#if defined(HAVE_LCD_COLOR)
#define IF_PIX_FMT(...) __VA_ARGS__
#else
#define IF_PIX_FMT(...)