1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-13 17:06:52 +00:00

added CAP_VIDEO guards

This commit is contained in:
Zeno Rogue 2020-09-23 18:42:47 +02:00
parent 1422d97071
commit b1f4f92f2c

View File

@ -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<int, 2> 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() {