mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-08 10:14:08 +00:00
added CAP_VIDEO guards
This commit is contained in:
parent
1422d97071
commit
b1f4f92f2c
@ -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 */
|
/* 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) {
|
void show_animation(presmode mode, string s, int sx, int sy, int frames, int fps) {
|
||||||
|
#if CAP_VIDEO
|
||||||
if(mode == pmStartAll) {
|
if(mode == pmStartAll) {
|
||||||
array<int, 2> tab;
|
array<int, 2> tab;
|
||||||
if(pipe(&tab[0])) {
|
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);
|
draw_texture(tex);
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void choose_presentation() {
|
void choose_presentation() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user