Web lists-archives.org

[MPlayer-dev-eng] [PATCH] Center vo_sdl window on display




This makes vo_sdl behave like most other VOs, creating it's window
centered on the screen.
Index: libvo/vo_sdl.c
===================================================================
--- libvo/vo_sdl.c	(revisão 27120)
+++ libvo/vo_sdl.c	(cópia de trabalho)
@@ -598,6 +598,10 @@
  
     priv->rgbsurface = NULL;
     priv->overlay = NULL;
+
+    if (!SDL_getenv("SDL_VIDEO_WINDOW_POS")) {
+        SDL_putenv("SDL_VIDEO_CENTERED=center");
+    }
  
     newsurface = SDL_SetVideoMode(width, height, bpp, sdlflags);
 
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng