| 2772 | } |
| 2773 | |
| 2774 | static void toggle_audio_display(void) |
| 2775 | { |
| 2776 | if (cur_stream) { |
| 2777 | int bgcolor = SDL_MapRGB(screen->format, 0x00, 0x00, 0x00); |
| 2778 | cur_stream->show_audio = (cur_stream->show_audio + 1) % 3; |
| 2779 | fill_rectangle(screen, |
| 2780 | cur_stream->xleft, cur_stream->ytop, cur_stream->width, cur_stream->height, |
| 2781 | bgcolor); |
| 2782 | SDL_UpdateRect(screen, cur_stream->xleft, cur_stream->ytop, cur_stream->width, cur_stream->height); |
| 2783 | } |
| 2784 | } |
| 2785 | |
| 2786 | /* handle an event sent by the GUI */ |
| 2787 | static void event_loop(void) |
no test coverage detected