Skip to content

Commit

Permalink
Redraw the overlay if we get an SDL_VIDEOEXPOSE event.
Browse files Browse the repository at this point in the history
This prevents the screen being blanked if we're in a long series of duplicate
 video frames.
  • Loading branch information
icculus committed Jun 11, 2011
1 parent 3834af6 commit 1890d9f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/sdltheoraplay.c
Expand Up @@ -253,6 +253,13 @@ static void playfile(const char *fname)
{
switch (event.type)
{
case SDL_VIDEOEXPOSE:
{
SDL_Rect dstrect = { 0, 0, video->width, video->height };
SDL_DisplayYUVOverlay(overlay, &dstrect);
break;
} // case

case SDL_QUIT:
quit = 1;
break;
Expand Down

0 comments on commit 1890d9f

Please sign in to comment.