[MPlayer-cvslog] r35449 - in trunk/gui: ui/main.c wm/ws.c wm/ws.h

ib subversion at mplayerhq.hu
Fri Nov 23 10:20:49 CET 2012


Author: ib
Date: Fri Nov 23 10:20:49 2012
New Revision: 35449

Log:
Pass big parameter by reference rather than by value.

Additionally, add a doxygen comment.

Modified:
   trunk/gui/ui/main.c
   trunk/gui/wm/ws.c
   trunk/gui/wm/ws.h

Modified: trunk/gui/ui/main.c
==============================================================================
--- trunk/gui/ui/main.c	Fri Nov 23 10:02:22 2012	(r35448)
+++ trunk/gui/ui/main.c	Fri Nov 23 10:20:49 2012	(r35449)
@@ -336,8 +336,8 @@ set_volume:
    case evIconify:
         switch ( iparam )
          {
-          case 0: wsIconify( guiApp.mainWindow ); break;
-          case 1: wsIconify( guiApp.videoWindow ); break;
+          case 0: wsIconify( &guiApp.mainWindow ); break;
+          case 1: wsIconify( &guiApp.videoWindow ); break;
          }
         break;
    case evHalfSize:

Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c	Fri Nov 23 10:02:22 2012	(r35448)
+++ trunk/gui/wm/ws.c	Fri Nov 23 10:20:49 2012	(r35449)
@@ -1196,12 +1196,14 @@ void wsResizeWindow(wsTWindow *win, int 
         XMapWindow(wsDisplay, win->WindowID);
 }
 
-// ----------------------------------------------------------------------------------------------
-//    Iconify window.
-// ----------------------------------------------------------------------------------------------
-void wsIconify(wsTWindow win)
+/**
+ * @brief Iconify a window.
+ *
+ * @param win pointer to a ws window structure
+ */
+void wsIconify(wsTWindow *win)
 {
-    XIconifyWindow(wsDisplay, win.WindowID, 0);
+    XIconifyWindow(wsDisplay, win->WindowID, 0);
 }
 
 /**

Modified: trunk/gui/wm/ws.h
==============================================================================
--- trunk/gui/wm/ws.h	Fri Nov 23 10:02:22 2012	(r35448)
+++ trunk/gui/wm/ws.h	Fri Nov 23 10:20:49 2012	(r35449)
@@ -234,7 +234,7 @@ void wsDestroyWindow(wsTWindow *win);
 void wsMoveWindow(wsTWindow *win, Bool abs, int x, int y);
 void wsMoveWindowWithin(wsTWindow *win, Bool abs, int x, int y);
 void wsResizeWindow(wsTWindow *win, int sx, int sy);
-void wsIconify(wsTWindow win);
+void wsIconify(wsTWindow *win);
 void wsRaiseWindowTop(Display *dpy, Window win);
 void wsSetBackground(wsTWindow *win, int color);
 void wsSetForegroundRGB(wsTWindow *win, int r, int g, int b);


More information about the MPlayer-cvslog mailing list