Mercurial > mplayer.hg
changeset 36521:93bf67487627
vo_sdl: remove some commented-out code, reduce code duplication.
author | reimar |
---|---|
date | Sat, 18 Jan 2014 23:08:32 +0000 |
parents | 1be891d42dc9 |
children | c9e8812156f4 |
files | libvo/vo_sdl.c |
diffstat | 1 files changed, 3 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_sdl.c Sat Jan 18 23:08:31 2014 +0000 +++ b/libvo/vo_sdl.c Sat Jan 18 23:08:32 2014 +0000 @@ -1189,7 +1189,6 @@ } /* update screen */ - //SDL_UpdateRect(priv->surface, 0, 0, priv->surface->clip_rect.w, priv->surface->clip_rect.h); if(priv->osd_has_changed) { priv->osd_has_changed = 0; SDL_UpdateRects(priv->surface, 1, &priv->surface->clip_rect); @@ -1198,21 +1197,14 @@ SDL_UpdateRect(priv->surface, 0, priv->y_screen_top, priv->surface->clip_rect.w, priv->y_screen_bottom); - /* check if we have a double buffered surface and flip() if we do. */ - if ( priv->surface->flags & SDL_DOUBLEBUF ) - SDL_Flip(priv->surface); - break; default: /* blit to the YUV overlay */ SDL_DisplayYUVOverlay (priv->overlay, &priv->surface->clip_rect); - - /* check if we have a double buffered surface and flip() if we do. */ - if ( priv->surface->flags & SDL_DOUBLEBUF ) - SDL_Flip(priv->surface); - - //SDL_LockYUVOverlay (priv->overlay); // removed because unused!? } + /* check if we have a double buffered surface and flip() if we do. */ + if ( priv->surface->flags & SDL_DOUBLEBUF ) + SDL_Flip(priv->surface); } static int