# HG changeset patch # User reimar # Date 1322942357 0 # Node ID 3f409c370881383275e8c42e99925fd58f0d0b76 # Parent e60d8bdb47952bdeb08661d85d90561f224b4a1e Make -title and -use-filename-title work on Windows. diff -r e60d8bdb4795 -r 3f409c370881 libvo/vo_directx.c --- 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; diff -r e60d8bdb4795 -r 3f409c370881 libvo/w32_common.c --- 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;