Mercurial > aewl
comparison client.c @ 30:2e0fb4130bfb
new stuff, fixed several issues
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Wed, 12 Jul 2006 17:50:31 +0200 |
parents | 8ad86d0a6a53 |
children | 386649deb651 |
comparison
equal
deleted
inserted
replaced
29:8ad86d0a6a53 | 30:2e0fb4130bfb |
---|---|
42 if(rows * rows < n) | 42 if(rows * rows < n) |
43 cols = rows + 1; | 43 cols = rows + 1; |
44 else | 44 else |
45 cols = rows; | 45 cols = rows; |
46 | 46 |
47 gw = (sw - 2 * c->border) / cols; | 47 gw = (sw - 2) / cols; |
48 gh = (sh - bh - 2 * c->border) / rows; | 48 gh = (sh - bh - 2) / rows; |
49 | 49 |
50 for(i = j = 0, c = clients; c; c = c->next) { | 50 for(i = j = 0, c = clients; c; c = c->next) { |
51 c->x = i * gw; | 51 c->x = i * gw; |
52 c->y = j * gh + bh; | 52 c->y = j * gh + bh; |
53 c->w = gw; | 53 c->w = gw; |