changeset 36193:9beb155c77a0

Cosmetic: Adjust indent. Additionally, merge variable definitions.
author ib
date Sun, 26 May 2013 15:51:54 +0000
parents 2e0729818242
children 829983f984ad
files gui/wm/ws.c
diffstat 1 files changed, 9 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/gui/wm/ws.c	Sun May 26 15:48:47 2013 +0000
+++ b/gui/wm/ws.c	Sun May 26 15:51:54 2013 +0000
@@ -786,22 +786,18 @@
 // ----------------------------------------------------------------------------------------------
 void wsWindowCreate(wsWindow *win, int x, int y, int w, int h, int p, int c, char *label)
 {
-    int depth;
+    int i, depth;
 
-    {
-        int i;
+    for (i = 0; i < wsWLCount; i++)
+        if (wsWindowList[i] == NULL)
+            break;
 
-        for (i = 0; i < wsWLCount; i++)
-            if (wsWindowList[i] == NULL)
-                break;
+    if (i == wsWLCount) {
+        mp_msg(MSGT_GPLAYER, MSGL_FATAL, MSGTR_WS_TooManyOpenWindows);
+        mplayer(MPLAYER_EXIT_GUI, EXIT_ERROR, 0);
+    }
 
-        if (i == wsWLCount) {
-            mp_msg(MSGT_GPLAYER, MSGL_FATAL, MSGTR_WS_TooManyOpenWindows);
-            mplayer(MPLAYER_EXIT_GUI, EXIT_ERROR, 0);
-        }
-
-        wsWindowList[i] = win;
-    }
+    wsWindowList[i] = win;
 
     win->Property = p;