X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Fclient%2Fwincontrol.c;h=09cff03caaa756b9e095a5ce10b45dc829636da0;hb=0438f2fc5df337e4264103a86c1765ace9c6565a;hp=816934a425e17a7d4d1851bdebc81f13fcb92658;hpb=fcfa6591e6b043e05c3e34a70db1b4d06d54096f;p=plomrogue
diff --git a/src/client/wincontrol.c b/src/client/wincontrol.c
index 816934a..09cff03 100644
--- a/src/client/wincontrol.c
+++ b/src/client/wincontrol.c
@@ -9,8 +9,7 @@
#include /* memcpy(), memset(), strchr(), strlen() */
#include "../common/rexit.h" /* exit_err() */
#include "../common/try_malloc.h" /* try_malloc() */
-#include "../common/yx_uint16.h" /* struct yx_uint16 */
-#include "windows.h" /* struct Win, get_win_by_id(), get_win_pos_in_order() */
+#include "windows.h" /* Win,yx_uint16, get_win_by_id(),get_win_pos_in_order() */
#include "world.h" /* global world */
@@ -109,9 +108,7 @@ static void place_win(struct Win * w)
* top, fit w's top left corner to that predecessor's top right corner.
*/
struct Win * w_top = w_prev;
- for (;
- w_top->start.y != 0 + sep;
- w_top = get_win_before(w_top->id));
+ for (; w_top->start.y != 0 + sep; w_top = get_win_before(w_top->id));
w->start.x = w_top->start.x + w_top->frame_size.x + sep;
/* If enough space is found below w's predecessor, fit w's top left