changeset 33782:896b427e598e

Remove unused parameter skindir from create_subwindow() in Win32 GUI.
author ib
date Mon, 11 Jul 2011 10:39:55 +0000
parents cdd4fc0616b6
children a450fade6a83
files gui/win32/dialogs.c gui/win32/gui.c gui/win32/gui.h
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gui/win32/dialogs.c	Mon Jul 11 10:36:09 2011 +0000
+++ b/gui/win32/dialogs.c	Mon Jul 11 10:39:55 2011 +0000
@@ -718,7 +718,7 @@
                         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 */
                     }
                 }
--- a/gui/win32/gui.c	Mon Jul 11 10:36:09 2011 +0000
+++ b/gui/win32/gui.c	Mon Jul 11 10:39:55 2011 +0000
@@ -1311,7 +1311,7 @@
 }
 
 /* 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 @@
 
     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;
 }
--- a/gui/win32/gui.h	Mon Jul 11 10:36:09 2011 +0000
+++ b/gui/win32/gui.h	Mon Jul 11 10:39:55 2011 +0000
@@ -101,7 +101,7 @@
 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);