GAP bug in flipped layout

This commit is contained in:
seanpringle
2012-09-25 10:20:52 +10:00
parent 096ab6fde6
commit 801a29e6c4

View File

@@ -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;