[MPlayer-cvslog] r36289 - trunk/gui/wm/ws.c

ib subversion at mplayerhq.hu
Sun May 26 17:51:54 CEST 2013


Author: ib
Date: Sun May 26 17:51:54 2013
New Revision: 36289

Log:
Cosmetic: Adjust indent.

Additionally, merge variable definitions.

Modified:
   trunk/gui/wm/ws.c

Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c	Sun May 26 17:48:47 2013	(r36288)
+++ trunk/gui/wm/ws.c	Sun May 26 17:51:54 2013	(r36289)
@@ -786,23 +786,19 @@ Window LeaderWindow;
 // ----------------------------------------------------------------------------------------------
 void wsWindowCreate(wsWindow *win, int x, int y, int w, int h, int p, int c, char *label)
 {
-    int depth;
-
-    {
-        int i;
-
-        for (i = 0; i < wsWLCount; i++)
-            if (wsWindowList[i] == NULL)
-                break;
+    int i, depth;
 
-        if (i == wsWLCount) {
-            mp_msg(MSGT_GPLAYER, MSGL_FATAL, MSGTR_WS_TooManyOpenWindows);
-            mplayer(MPLAYER_EXIT_GUI, EXIT_ERROR, 0);
-        }
+    for (i = 0; i < wsWLCount; i++)
+        if (wsWindowList[i] == NULL)
+            break;
 
-        wsWindowList[i] = win;
+    if (i == wsWLCount) {
+        mp_msg(MSGT_GPLAYER, MSGL_FATAL, MSGTR_WS_TooManyOpenWindows);
+        mplayer(MPLAYER_EXIT_GUI, EXIT_ERROR, 0);
     }
 
+    wsWindowList[i] = win;
+
     win->Property = p;
 
     win->Decoration = ((p & wsShowFrame) != 0);


More information about the MPlayer-cvslog mailing list