Mercurial > mplayer.hg
changeset 35355:c8478a499a17
Pass big parameter by reference rather than by value.
Additionally, add a doxygen comment.
author | ib |
---|---|
date | Fri, 23 Nov 2012 09:20:49 +0000 |
parents | 2ce3d21157ed |
children | 90d181c052e5 |
files | gui/ui/main.c gui/wm/ws.c gui/wm/ws.h |
diffstat | 3 files changed, 10 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/ui/main.c Fri Nov 23 09:02:22 2012 +0000 +++ b/gui/ui/main.c Fri Nov 23 09:20:49 2012 +0000 @@ -336,8 +336,8 @@ 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:
--- a/gui/wm/ws.c Fri Nov 23 09:02:22 2012 +0000 +++ b/gui/wm/ws.c Fri Nov 23 09:20:49 2012 +0000 @@ -1196,12 +1196,14 @@ 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); } /**
--- a/gui/wm/ws.h Fri Nov 23 09:02:22 2012 +0000 +++ b/gui/wm/ws.h Fri Nov 23 09:20:49 2012 +0000 @@ -234,7 +234,7 @@ 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);