From b1f4f92f2c7d52c139161e58a39a5bd7e039c4d6 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 23 Sep 2020 18:42:47 +0200 Subject: [PATCH] added CAP_VIDEO guards --- rogueviz/presentation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rogueviz/presentation.cpp b/rogueviz/presentation.cpp index 3e65f0e7..993b0a89 100644 --- a/rogueviz/presentation.cpp +++ b/rogueviz/presentation.cpp @@ -166,6 +166,7 @@ void read_all(int fd, void *buf, int cnt) { /* note: this loads the whole animation uncompressed into memory, so it is suitable only for short presentations */ void show_animation(presmode mode, string s, int sx, int sy, int frames, int fps) { +#if CAP_VIDEO if(mode == pmStartAll) { array tab; if(pipe(&tab[0])) { @@ -221,7 +222,7 @@ void show_animation(presmode mode, string s, int sx, int sy, int frames, int fps draw_texture(tex); return false; }); - +#endif } void choose_presentation() {