[MPlayer-cvslog] r35087 - trunk/gui/win32/gui.c

ib subversion at mplayerhq.hu
Wed Aug 15 14:10:43 CEST 2012


Author: ib
Date: Wed Aug 15 14:10:42 2012
New Revision: 35087

Log:
Pass in NULL as handle to parent or owner window.

It's counter-intuitive to pass in the handle that is being created,
although its value is NULL as well.

Patch in part by Stephen Sheldon, sfsheldo gmail com.

Modified:
   trunk/gui/win32/gui.c

Modified: trunk/gui/win32/gui.c
==============================================================================
--- trunk/gui/win32/gui.c	Wed Aug 15 02:26:58 2012	(r35086)
+++ trunk/gui/win32/gui.c	Wed Aug 15 14:10:42 2012	(r35087)
@@ -1434,7 +1434,7 @@ int create_videowindow(gui_t *gui)
 
     hWnd = CreateWindowEx(0, "MPlayer - Video", "MPlayer - Video", style,
                           x, y, rect.right-rect.left, rect.bottom-rect.top,
-                          gui->videowindow, NULL, instance, NULL);
+                          NULL, NULL, instance, NULL);
 
     /* load all the window images */
     window_render(gui, hWnd, hdc, priv, desc, binfo);
@@ -1549,7 +1549,7 @@ int create_window(gui_t *gui, char *skin
 
     hwnd = CreateWindowEx(0, gui->classname, "MPlayer", style,
                           x, y, rect.right-rect.left, rect.bottom-rect.top,
-                          gui->mainwindow, NULL, instance, NULL);
+                          NULL, NULL, instance, NULL);
 
     /* set the systray icon properties */
     nid.cbSize = sizeof(NOTIFYICONDATA);


More information about the MPlayer-cvslog mailing list