From b0d1de01e56bf60982395e8219c598d12f37c291 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 22 May 2020 14:52:12 +0200 Subject: [PATCH] option -animvideo now only available with CAP_VIDEO --- screenshot.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/screenshot.cpp b/screenshot.cpp index 67c18538..9b9ba591 100644 --- a/screenshot.cpp +++ b/screenshot.cpp @@ -1659,15 +1659,17 @@ int readArgs() { PHASE(3); shift(); noframes = argi(); shift(); animfile = args(); record_animation(); } - else if(argis("-animvideo")) { - PHASE(3); shift(); noframes = argi(); - shift(); videofile = args(); record_video(); - } else if(argis("-record-only")) { PHASEFROM(2); shift(); min_frame = argi(); shift(); max_frame = argi(); } +#endif +#if CAP_VIDEO + else if(argis("-animvideo")) { + PHASE(3); shift(); noframes = argi(); + shift(); videofile = args(); record_video(); + } #endif else if(argis("-animcircle")) { PHASE(3); start_game();