From 7bc6a0a333f076e48b5d730d4e7104e8d55e15c7 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 25 Jan 2016 01:01:57 +0100 Subject: [PATCH] (screenshot.c) Cleanups --- screenshot.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/screenshot.c b/screenshot.c index 946f61d48c..203378de31 100644 --- a/screenshot.c +++ b/screenshot.c @@ -55,13 +55,12 @@ static bool screenshot_dump(const char *folder, const void *frame, unsigned width, unsigned height, int pitch, bool bgr24) { bool ret; - char filename[PATH_MAX_LENGTH] = {0}; - char shotname[256] = {0}; - struct scaler_ctx scaler = {0}; + char filename[PATH_MAX_LENGTH]; + char shotname[256]; +#if defined(HAVE_ZLIB_DEFLATE) && defined(HAVE_RPNG) uint8_t *out_buffer = NULL; - - (void)out_buffer; - (void)scaler; + struct scaler_ctx scaler = {0}; +#endif fill_dated_filename(shotname, IMG_EXT, sizeof(shotname)); fill_pathname_join(filename, folder, shotname, sizeof(filename));