[MPlayer-cvslog] r35763 - in trunk/gui/wm: ws.c ws.h
ib
subversion at mplayerhq.hu
Thu Jan 17 16:44:23 CET 2013
Author: ib
Date: Thu Jan 17 16:44:23 2013
New Revision: 35763
Log:
Remove pointless variable wsTrue.
As a result, wsEvents() becomes a function with void result type.
Modified:
trunk/gui/wm/ws.c
trunk/gui/wm/ws.h
Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c Thu Jan 17 16:25:56 2013 (r35762)
+++ trunk/gui/wm/ws.c Thu Jan 17 16:44:23 2013 (r35763)
@@ -94,8 +94,6 @@ static int wsBlueMask;
static int wsOutMask;
static int wsNonNativeOrder;
-static Bool wsTrue = True;
-
#define wsWLCount 5
static wsWindow *wsWindowList[wsWLCount];
@@ -708,7 +706,7 @@ void wsAutohideCursor(void)
// Handle events.
// ----------------------------------------------------------------------------------------------
-Bool wsEvents(XEvent *event)
+void wsEvents(XEvent *event)
{
unsigned long i = 0;
int l;
@@ -718,7 +716,7 @@ Bool wsEvents(XEvent *event)
l = wsSearch(event->xany.window);
if (l == -1)
- return !wsTrue;
+ return;
wsWindowList[l]->State = wsNone;
@@ -969,8 +967,6 @@ buttonreleased:
XFlush(wsDisplay);
XSync(wsDisplay, False);
-
- return !wsTrue;
}
void wsHandleEvents(void)
Modified: trunk/gui/wm/ws.h
==============================================================================
--- trunk/gui/wm/ws.h Thu Jan 17 16:25:56 2013 (r35762)
+++ trunk/gui/wm/ws.h Thu Jan 17 16:44:23 2013 (r35763)
@@ -185,7 +185,7 @@ void wsSetErrorHandler(void);
int wsGetDepthOnScreen(void);
void wsAutohideCursor(void);
-Bool wsEvents(XEvent *event);
+void wsEvents(XEvent *event);
void wsHandleEvents(void);
void wsCreateWindow(wsWindow *win, int x, int y, int w, int h, int b, int c, unsigned char p, char *label);
More information about the MPlayer-cvslog
mailing list