changeset 34597:e227a8ae4418

Support -noborder with SDL.
author reimar
date Sat, 11 Feb 2012 15:35:39 +0000
parents 04feb00f91be
children 877e37095c2d
files libvo/sdl_common.c libvo/vo_sdl.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/sdl_common.c	Fri Feb 10 15:40:53 2012 +0000
+++ b/libvo/sdl_common.c	Sat Feb 11 15:35:39 2012 +0000
@@ -117,6 +117,8 @@
     // 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());
--- a/libvo/vo_sdl.c	Fri Feb 10 15:40:53 2012 +0000
+++ b/libvo/vo_sdl.c	Sat Feb 11 15:35:39 2012 +0000
@@ -396,6 +396,8 @@
 	if (vo_doublebuffering)
 	    priv->sdlflags |= SDL_DOUBLEBUF;
 #endif
+        if (!vo_border)
+            priv->sdlflags |= SDL_NOFRAME;
 
 	/* get information about the graphics adapter */
 	vidInfo = SDL_GetVideoInfo ();