changeset 34293:3f409c370881

Make -title and -use-filename-title work on Windows.
author reimar
date Sat, 03 Dec 2011 19:59:17 +0000
parents e60d8bdb4795
children d30ea496ed2a
files libvo/vo_directx.c libvo/w32_common.c
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_directx.c	Sat Dec 03 19:06:19 2011 +0000
+++ b/libvo/vo_directx.c	Sat Dec 03 19:59:17 2011 +0000
@@ -959,9 +959,6 @@
     if (!vo_w32_config(d_width, d_height, options))
         return 1;
 
-    if (WinID == -1)
-        SetWindowText(vo_w32_window, title);
-
     /*create the surfaces*/
     if (Directx_CreatePrimarySurface())
         return 1;
--- a/libvo/w32_common.c	Sat Dec 03 19:06:19 2011 +0000
+++ b/libvo/w32_common.c	Sat Dec 03 19:59:17 2011 +0000
@@ -433,6 +433,8 @@
         prev_height = vo_dheight = height;
         prev_x = vo_dx;
         prev_y = vo_dy;
+        if (vo_wintitle)
+            SetWindowText(vo_w32_window, vo_wintitle);
     }
 
     vo_fs = flags & VOFLAG_FULLSCREEN;