changeset 35682:fcb8f12cefa7

Cosmetic: Change parameter names.
author ib
date Fri, 18 Jan 2013 00:48:26 +0000
parents 80c5c89f77d6
children 75155d8a9c7e
files gui/wm/ws.c gui/wm/ws.h
diffstat 2 files changed, 21 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/gui/wm/ws.c	Fri Jan 18 00:35:38 2013 +0000
+++ b/gui/wm/ws.c	Fri Jan 18 00:48:26 2013 +0000
@@ -1196,16 +1196,16 @@
 // ----------------------------------------------------------------------------------------------
 //    Resize window to sx, sy.
 // ----------------------------------------------------------------------------------------------
-void wsWindowResize(wsWindow *win, int sx, int sy)
+void wsWindowResize(wsWindow *win, int w, int h)
 {
-    win->Width  = sx;
-    win->Height = sy;
+    win->Width  = w;
+    win->Height = h;
 
     if (vo_wm_type == 0)
         XUnmapWindow(wsDisplay, win->WindowID);
 
     wsSizeHint(win);
-    XResizeWindow(wsDisplay, win->WindowID, sx, sy);
+    XResizeWindow(wsDisplay, win->WindowID, w, h);
 
     if (vo_wm_type == 0)
         XMapWindow(wsDisplay, win->WindowID);
@@ -1280,9 +1280,9 @@
     XIconifyWindow(wsDisplay, win->WindowID, 0);
 }
 
-void wsWindowVisibility(wsWindow *win, int show)
+void wsWindowVisibility(wsWindow *win, int vis)
 {
-    switch (show) {
+    switch (vis) {
     case wsShowWindow:
 
         XMapRaised(wsDisplay, win->WindowID);
@@ -1345,12 +1345,12 @@
 // ----------------------------------------------------------------------------------------------
 //    Put 'Image' to window.
 // ----------------------------------------------------------------------------------------------
-void wsImageCreate(wsWindow *win, int Width, int Height)
+void wsImageCreate(wsWindow *win, int w, int h)
 {
 #ifdef HAVE_SHM
     if (wsUseXShm) {
         win->xImage = XShmCreateImage(wsDisplay, win->VisualInfo.visual,
-                                      win->VisualInfo.depth, ZPixmap, NULL, &win->Shminfo, Width, Height);
+                                      win->VisualInfo.depth, ZPixmap, NULL, &win->Shminfo, w, h);
 
         if (win->xImage == NULL) {
             mp_msg(MSGT_GPLAYER, MSGL_FATAL, MSGTR_WS_ShmError);
@@ -1386,7 +1386,7 @@
 #endif
     {
         win->xImage = XCreateImage(wsDisplay, win->VisualInfo.visual, win->VisualInfo.depth,
-                                   ZPixmap, 0, 0, Width, Height,
+                                   ZPixmap, 0, 0, w, h,
                                    (wsScreenDepth == 3) ? 32 : wsScreenDepth,
                                    0);
 
@@ -1417,10 +1417,10 @@
     win->xImage = NULL;
 }
 
-void wsImageConvert(wsWindow *win, unsigned char *Image)
+void wsImageConvert(wsWindow *win, unsigned char *img)
 {
     static struct SwsContext *sws_ctx;
-    const uint8_t *src[4] = { Image, NULL, NULL, NULL };
+    const uint8_t *src[4] = { img, NULL, NULL, NULL };
     int src_stride[4]     = { 4 * win->xImage->width, 0, 0, 0 };
     uint8_t *dst[4]       = { win->ImageData, NULL, NULL, NULL };
     int dst_stride[4];
@@ -1477,18 +1477,18 @@
     }
 }
 
-void wsImageResize(wsWindow *win, int Width, int Height)
+void wsImageResize(wsWindow *win, int w, int h)
 {
     wsImageDestroy(win);
-    wsImageCreate(win, Width, Height);
+    wsImageCreate(win, w, h);
 }
 
 // ----------------------------------------------------------------------------------------------
 //    Show / hide mouse cursor.
 // ----------------------------------------------------------------------------------------------
-void wsMouseVisibility(wsWindow *win, int m)
+void wsMouseVisibility(wsWindow *win, int vis)
 {
-    switch (m) {
+    switch (vis) {
     case wsShowMouseCursor:
 
         if (win->wsCursor != None) {
--- a/gui/wm/ws.h	Fri Jan 18 00:35:38 2013 +0000
+++ b/gui/wm/ws.h	Fri Jan 18 00:48:26 2013 +0000
@@ -183,12 +183,12 @@
 void wsWindowDestroy(wsWindow *win);
 void wsWindowMove(wsWindow *win, Bool abs, int x, int y);
 void wsWindowMoveWithin(wsWindow *win, Bool abs, int x, int y);
-void wsWindowResize(wsWindow *win, int sx, int sy);
+void wsWindowResize(wsWindow *win, int w, int h);
 void wsWindowIconify(wsWindow *win);
 void wsWindowRaiseTop(Display *display, Window Win);
 void wsWindowBackground(wsWindow *win, int r, int g, int b);
 void wsWindowClear(wsWindow *win);
-void wsWindowVisibility(wsWindow *win, int show);
+void wsWindowVisibility(wsWindow *win, int vis);
 void wsWindowDecoration(wsWindow *win, Bool decor);
 void wsWindowLayer(Display *display, Window Win, Bool fullscreen);
 void wsWindowFullscreen(wsWindow *win);
@@ -199,15 +199,15 @@
 // ----------------------------------------------------------------------------------------------
 //    Show / hide mouse cursor.
 // ----------------------------------------------------------------------------------------------
-void wsMouseVisibility(wsWindow *win, int m);
+void wsMouseVisibility(wsWindow *win, int vis);
 
 // ----------------------------------------------------------------------------------------------
 // Image handling
 // ----------------------------------------------------------------------------------------------
-void wsImageCreate(wsWindow *win, int Width, int Height);
-void wsImageConvert(wsWindow *win, unsigned char *Image);
+void wsImageCreate(wsWindow *win, int w, int h);
+void wsImageConvert(wsWindow *win, unsigned char *img);
 void wsImageDraw(wsWindow *win);
-void wsImageResize(wsWindow *win, int Width, int Height);
+void wsImageResize(wsWindow *win, int w, int h);
 void wsImageDestroy(wsWindow *win);
 
 #endif /* MPLAYER_GUI_WS_H */