[MPlayer-cvslog] r34685 - in trunk/libvo: sdl_common.c vo_sdl.c

reimar subversion at mplayerhq.hu
Sat Feb 11 16:35:39 CET 2012


Author: reimar
Date: Sat Feb 11 16:35:39 2012
New Revision: 34685

Log:
Support -noborder with SDL.

Modified:
   trunk/libvo/sdl_common.c
   trunk/libvo/vo_sdl.c

Modified: trunk/libvo/sdl_common.c
==============================================================================
--- trunk/libvo/sdl_common.c	Fri Feb 10 16:40:53 2012	(r34684)
+++ trunk/libvo/sdl_common.c	Sat Feb 11 16:35:39 2012	(r34685)
@@ -117,6 +117,8 @@ int sdl_set_mode(int bpp, uint32_t flags
     // doublebuf with opengl creates flickering
     if (vo_doublebuffering && !(flags & SDL_OPENGL))
         flags |= SDL_DOUBLEBUF;
+    if (!vo_border)
+        flags |= SDL_NOFRAME;
     s = SDL_SetVideoMode(vo_dwidth, vo_dheight, bpp, flags);
     if (!s) {
       mp_msg(MSGT_VO, MSGL_FATAL, "SDL SetVideoMode failed: %s\n", SDL_GetError());

Modified: trunk/libvo/vo_sdl.c
==============================================================================
--- trunk/libvo/vo_sdl.c	Fri Feb 10 16:40:53 2012	(r34684)
+++ trunk/libvo/vo_sdl.c	Sat Feb 11 16:35:39 2012	(r34685)
@@ -396,6 +396,8 @@ static int sdl_open (void *plugin, void 
 	if (vo_doublebuffering)
 	    priv->sdlflags |= SDL_DOUBLEBUF;
 #endif
+        if (!vo_border)
+            priv->sdlflags |= SDL_NOFRAME;
 
 	/* get information about the graphics adapter */
 	vidInfo = SDL_GetVideoInfo ();


More information about the MPlayer-cvslog mailing list