[MPlayer-cvslog] r33870 - in trunk/gui/win32: dialogs.c gui.c gui.h

ib subversion at mplayerhq.hu
Mon Jul 11 12:39:56 CEST 2011


Author: ib
Date: Mon Jul 11 12:39:55 2011
New Revision: 33870

Log:
Remove unused parameter skindir from create_subwindow() in Win32 GUI.

Modified:
   trunk/gui/win32/dialogs.c
   trunk/gui/win32/gui.c
   trunk/gui/win32/gui.h

Modified: trunk/gui/win32/dialogs.c
==============================================================================
--- trunk/gui/win32/dialogs.c	Mon Jul 11 12:36:09 2011	(r33869)
+++ trunk/gui/win32/dialogs.c	Mon Jul 11 12:39:55 2011	(r33870)
@@ -718,7 +718,7 @@ static LRESULT CALLBACK SkinBrowserWndPr
                         Shell_NotifyIcon(NIM_DELETE, &nid);
                         destroy_window(mygui);
                         create_window(mygui, skinspath);
-                        create_subwindow(mygui, skinspath);
+                        create_subwindow(mygui);
                         SendMessage(hwnd, WM_CLOSE, 0, 0); /* Avoid crashing when switching skin */
                     }
                 }

Modified: trunk/gui/win32/gui.c
==============================================================================
--- trunk/gui/win32/gui.c	Mon Jul 11 12:36:09 2011	(r33869)
+++ trunk/gui/win32/gui.c	Mon Jul 11 12:39:55 2011	(r33870)
@@ -1311,7 +1311,7 @@ static int window_render(gui_t *gui, HWN
 }
 
 /* creates the sub (AKA video) window,*/
-int create_subwindow(gui_t *gui, char *skindir)
+int create_subwindow(gui_t *gui)
 {
     HINSTANCE instance = GetModuleHandle(NULL);
     WNDCLASS wc;
@@ -1542,7 +1542,7 @@ gui_t *create_gui(char *skindir, void (*
 
     sprintf(temp, "%s\\%s", skindir, skinName);
     if(create_window(gui, temp)) return NULL;
-    if(create_subwindow(gui, temp)) return NULL;
+    if(create_subwindow(gui)) return NULL;
     if(console) console_toggle();
     return gui;
 }

Modified: trunk/gui/win32/gui.h
==============================================================================
--- trunk/gui/win32/gui.h	Mon Jul 11 12:36:09 2011	(r33869)
+++ trunk/gui/win32/gui.h	Mon Jul 11 12:39:55 2011	(r33870)
@@ -101,7 +101,7 @@ struct gui_t
 gui_t *create_gui(char *skindir, void (*playercontrol)(int event));
 int destroy_window(gui_t *gui);
 int create_window(gui_t *gui, char *skindir);
-int create_subwindow(gui_t *gui, char *skindir);
+int create_subwindow(gui_t *gui);
 int parse_filename(char *file, play_tree_t *playtree, m_config_t *mconfig, int clear);
 void capitalize(char *filename);
 


More information about the MPlayer-cvslog mailing list