From dca400aa403088003c4480086d71340a366e0770 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 4 May 2016 04:38:44 +0200 Subject: [PATCH] Add ifdef --- screenshot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/screenshot.c b/screenshot.c index b7e7334b1c..6648b0f4c2 100644 --- a/screenshot.c +++ b/screenshot.c @@ -50,6 +50,7 @@ #include "config.h" #endif +#if defined(HAVE_ZLIB_DEFLATE) && defined(HAVE_RPNG) static INLINE void convert_frame_to_bgr_24( struct scaler_ctx *scaler, void *output, @@ -76,6 +77,7 @@ static INLINE void convert_frame_to_bgr_24( scaler_ctx_scale(scaler, output, input); } +#endif /* Take frame bottom-up. */ static bool screenshot_dump(const char *folder, const void *frame,