Skip to content

Commit

Permalink
prevent crash when no fb available
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Aug 27, 2020
1 parent 428fcc1 commit 4225c3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions toxblinkenwall/toxblinkenwall.c
Original file line number Diff line number Diff line change
Expand Up @@ -3413,6 +3413,7 @@ void print_tox_id(Tox *tox)

void show_video_calling(uint32_t fnum, bool with_delay)
{
#ifndef HAVE_X11_AS_FB
char cmd_str[1000];
CLEAR(cmd_str);
snprintf(cmd_str, sizeof(cmd_str), "%s", shell_cmd__show_video_calling);
Expand Down Expand Up @@ -3471,6 +3472,7 @@ void show_video_calling(uint32_t fnum, bool with_delay)
{
yieldcpu(600);
}
#endif
}

void show_text_as_image(const char *display_text)
Expand Down

0 comments on commit 4225c3f

Please sign in to comment.