Commit 2e7889b3 authored by michael's avatar michael

Clean after togling wave.

Fixes issue1180.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21632 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e458ea74
...@@ -2306,7 +2306,12 @@ static void do_exit(void) ...@@ -2306,7 +2306,12 @@ static void do_exit(void)
static void toggle_audio_display(void) static void toggle_audio_display(void)
{ {
if (cur_stream) { if (cur_stream) {
int bgcolor = SDL_MapRGB(screen->format, 0x00, 0x00, 0x00);
cur_stream->show_audio = !cur_stream->show_audio; cur_stream->show_audio = !cur_stream->show_audio;
fill_rectangle(screen,
cur_stream->xleft, cur_stream->ytop, cur_stream->width, cur_stream->height,
bgcolor);
SDL_UpdateRect(screen, cur_stream->xleft, cur_stream->ytop, cur_stream->width, cur_stream->height);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment