From 94c3e86ab849dafbc9df20f7e2f1441f205c2ecf Mon Sep 17 00:00:00 2001 From: seanpringle Date: Tue, 25 Sep 2012 10:22:47 +1000 Subject: [PATCH] GAP bug in flipped layout --- setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.c b/setup.c index 5a782b8..f728f53 100644 --- a/setup.c +++ b/setup.c @@ -116,7 +116,7 @@ void setup() m->spots[j].h = height_spot1; if (j == SPOT1) continue; - m->spots[j].y = (SPOT1_ALIGN == SPOT1_LEFT ? y + height_spot1: y) + GAP; + m->spots[j].y = SPOT1_ALIGN == SPOT1_LEFT ? y + height_spot1 + GAP: y; m->spots[j].h = h - height_spot1 - GAP; m->spots[j].w = w - width_spot2 - GAP; if (j == SPOT3) continue; @@ -136,7 +136,7 @@ void setup() m->spots[j].h = h; if (j == SPOT1) continue; - m->spots[j].x = (SPOT1_ALIGN == SPOT1_LEFT ? x + width_spot1: x) + GAP; + m->spots[j].x = SPOT1_ALIGN == SPOT1_LEFT ? x + width_spot1 + GAP: x; m->spots[j].w = w - width_spot1 - GAP; m->spots[j].h = height_spot2; if (j == SPOT2) continue;