summaryrefslogtreecommitdiffstats
path: root/libvo/vo_directx.c
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2011-12-07 01:36:19 +0100
committerwm4 <wm4@mplayer2.org>2012-03-17 21:06:30 +0100
commit1bb08fc1e6b02d8a043005bd498b4d5a7e5a57bd (patch)
tree9d09e1878a007c30ef6e8995a4b899dbac7f9330 /libvo/vo_directx.c
parent7c6a4e1e98c29ea853c6f7fdf9a3e5a3668006b5 (diff)
downloadmpv-1bb08fc1e6b02d8a043005bd498b4d5a7e5a57bd.tar.bz2
mpv-1bb08fc1e6b02d8a043005bd498b4d5a7e5a57bd.tar.xz
win32: properly set window title
Set the window title on win32 based VOs using the same logic as on X11 and Cocoa. Until now, the window title when using vo_direct3d and vo_gl was hardcoded to "MPlayer - The Movie Player", and vo_directx showed "MPlayer". Now it will show "mplayer2", unless the --title or --use-filename-title options are used. Change the internal window class name to the string "mplayer2" too.
Diffstat (limited to 'libvo/vo_directx.c')
-rw-r--r--libvo/vo_directx.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libvo/vo_directx.c b/libvo/vo_directx.c
index 7302b36cdb..52d18188d2 100644
--- a/libvo/vo_directx.c
+++ b/libvo/vo_directx.c
@@ -959,9 +959,6 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_
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;