[MPlayer-cvslog] r35733 - in trunk/gui/wm: ws.c ws.h

ib subversion at mplayerhq.hu
Thu Jan 10 21:52:37 CET 2013


Author: ib
Date: Thu Jan 10 21:52:37 2013
New Revision: 35733

Log:
Don't define a function by a macro.

Use a proper function definition.

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

Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c	Thu Jan 10 20:23:37 2013	(r35732)
+++ trunk/gui/wm/ws.c	Thu Jan 10 21:52:37 2013	(r35733)
@@ -1536,6 +1536,16 @@ int wsGetOutMask(void)
     return 0;
 }
 
+/**
+ * @brief Clear the entire area in a window.
+ *
+ * @param win pointer to a ws window structure
+ */
+void wsClearWindow(wsTWindow *win)
+{
+    XClearWindow(wsDisplay, win->WindowID);
+}
+
 void wsSetTitle(wsTWindow *win, char *name)
 {
     XStoreName(wsDisplay, win->WindowID, name);

Modified: trunk/gui/wm/ws.h
==============================================================================
--- trunk/gui/wm/ws.h	Thu Jan 10 20:23:37 2013	(r35732)
+++ trunk/gui/wm/ws.h	Thu Jan 10 21:52:37 2013	(r35733)
@@ -242,7 +242,7 @@ void wsRaiseWindowTop(Display *display, 
 void wsSetBackground(wsTWindow *win, int color);
 void wsSetForegroundRGB(wsTWindow *win, int r, int g, int b);
 void wsSetBackgroundRGB(wsTWindow *win, int r, int g, int b);
-#define wsClearWindow(win) XClearWindow(wsDisplay, (win)->WindowID)
+void wsClearWindow(wsTWindow *win);
 void wsSetTitle(wsTWindow *win, char *name);
 void wsVisibleWindow(wsTWindow *win, int show);
 void wsWindowDecoration(wsTWindow *win, Bool decor);


More information about the MPlayer-cvslog mailing list